[Libreoffice-commits] core.git: sal/rtl

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Jul 29 17:11:45 UTC 2018


 sal/rtl/strtmpl.cxx |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

New commits:
commit 72b099d279e7096d41a04fe8c0dd493a5fc18a33
Author:     Noel Grandin <noelgrandin at gmail.com>
AuthorDate: Sun Jul 29 13:42:32 2018 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Sun Jul 29 19:11:23 2018 +0200

    bChanged can be bool
    
    Change-Id: I7d3f6af5410d93537b6b7a704615f43860160320
    Reviewed-on: https://gerrit.libreoffice.org/58278
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/sal/rtl/strtmpl.cxx b/sal/rtl/strtmpl.cxx
index af3a28cbfec2..341a84d01052 100644
--- a/sal/rtl/strtmpl.cxx
+++ b/sal/rtl/strtmpl.cxx
@@ -1618,7 +1618,7 @@ void SAL_CALL IMPL_RTL_STRINGNAME( newReplace )( IMPL_RTL_STRINGDATA** ppThis,
     assert(ppThis);
     assert(pStr);
     IMPL_RTL_STRINGDATA*    pOrg        = *ppThis;
-    int                     bChanged    = 0;
+    bool                    bChanged    = false;
     sal_Int32               nLen        = pStr->length;
     const IMPL_RTL_STRCODE* pCharStr    = pStr->buffer;
 
@@ -1650,7 +1650,7 @@ void SAL_CALL IMPL_RTL_STRINGNAME( newReplace )( IMPL_RTL_STRINGDATA** ppThis,
                 }
             }
 
-            bChanged = 1;
+            bChanged = true;
             break;
         }
 
@@ -1679,7 +1679,7 @@ void SAL_CALL IMPL_RTL_STRINGNAME( newToAsciiLowerCase )( IMPL_RTL_STRINGDATA**
     assert(ppThis);
     assert(pStr);
     IMPL_RTL_STRINGDATA*    pOrg        = *ppThis;
-    int                     bChanged    = 0;
+    bool                    bChanged    = false;
     sal_Int32               nLen        = pStr->length;
     const IMPL_RTL_STRCODE* pCharStr    = pStr->buffer;
 
@@ -1708,7 +1708,7 @@ void SAL_CALL IMPL_RTL_STRINGNAME( newToAsciiLowerCase )( IMPL_RTL_STRINGDATA**
                 }
             }
 
-            bChanged = 1;
+            bChanged = true;
             break;
         }
 
@@ -1737,7 +1737,7 @@ void SAL_CALL IMPL_RTL_STRINGNAME( newToAsciiUpperCase )( IMPL_RTL_STRINGDATA**
     assert(ppThis);
     assert(pStr);
     IMPL_RTL_STRINGDATA*    pOrg        = *ppThis;
-    int                     bChanged    = 0;
+    bool                    bChanged    = false;
     sal_Int32               nLen        = pStr->length;
     const IMPL_RTL_STRCODE* pCharStr    = pStr->buffer;
 
@@ -1766,7 +1766,7 @@ void SAL_CALL IMPL_RTL_STRINGNAME( newToAsciiUpperCase )( IMPL_RTL_STRINGDATA**
                 }
             }
 
-            bChanged = 1;
+            bChanged = true;
             break;
         }
 


More information about the Libreoffice-commits mailing list