tools/source/inet/inetmsg.cxx |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 4be9c68b0938619bfc37eacded4a69a56bba6086
Author: Stephan Bergmann <sberg...@redhat.com>
Date:   Sun Feb 26 21:52:17 2017 +0100

    loplugin:loopvartoosmall
    
    Change-Id: I882f5849aa92757dc08d1a61c0681fb42e515949

diff --git a/tools/source/inet/inetmsg.cxx b/tools/source/inet/inetmsg.cxx
index f4fd59c..5dec8ff 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()) &&
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to