diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-02-26 21:52:17 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-02-26 21:52:17 +0100 |
commit | 4be9c68b0938619bfc37eacded4a69a56bba6086 (patch) | |
tree | 276b1937b40e034351fbbc1a7035d55c31116a13 | |
parent | d9e1313144fee2cfaf402b724654ef3902bf4970 (diff) |
loplugin:loopvartoosmall
Change-Id: I882f5849aa92757dc08d1a61c0681fb42e515949
-rw-r--r-- | tools/source/inet/inetmsg.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/source/inet/inetmsg.cxx b/tools/source/inet/inetmsg.cxx index f4fd59cc0749..5dec8ff21142 100644 --- a/tools/source/inet/inetmsg.cxx +++ b/tools/source/inet/inetmsg.cxx @@ -54,9 +54,9 @@ static const sal_Char *months[12] = "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; -static sal_uInt16 ParseNumber(const OString& rStr, sal_uInt16& nIndex) +static sal_uInt16 ParseNumber(const OString& rStr, sal_Int32& nIndex) { - sal_uInt16 n = nIndex; + sal_Int32 n = nIndex; while ((n < rStr.getLength()) && rtl::isAsciiDigit(rStr[n])) n++; OString aNum(rStr.copy(nIndex, (n - nIndex))); @@ -65,9 +65,9 @@ static sal_uInt16 ParseNumber(const OString& rStr, sal_uInt16& nIndex) return (sal_uInt16)(aNum.toInt32()); } -static sal_uInt16 ParseMonth(const OString& rStr, sal_uInt16& nIndex) +static sal_uInt16 ParseMonth(const OString& rStr, sal_Int32& nIndex) { - sal_uInt16 n = nIndex; + sal_Int32 n = nIndex; while ((n < rStr.getLength()) && rtl::isAsciiAlpha(rStr[n])) n++; OString aMonth(rStr.copy(nIndex, 3)); @@ -90,7 +90,7 @@ bool INetMIMEMessage::ParseDateField ( if (aDateField.indexOf(':') != -1) { // Some DateTime format. - sal_uInt16 nIndex = 0; + sal_Int32 nIndex = 0; // Skip over <Wkd> or <Weekday>, leading and trailing space. while ((nIndex < aDateField.getLength()) && |