[Libreoffice-commits] core.git: connectivity/source

Noel Grandin noel.grandin at collabora.co.uk
Tue May 30 10:00:57 UTC 2017


 connectivity/source/commontools/CommonTools.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 04161ae40d9ba7fddbdaed183ebadceb8c784ad9
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date:   Tue May 30 11:55:44 2017 +0200

    fix convertName2SQLName
    
    after my commit 47bbe217607374ccd3a76f1ef6d82e43efd31ba1
    "untwist the logic in convertName2SQLName"
    
    Change-Id: I3d365a24c538d8ecade2b6fe32fa739d8f4bd211

diff --git a/connectivity/source/commontools/CommonTools.cxx b/connectivity/source/commontools/CommonTools.cxx
index 82e497b2e65b..2afca36d0604 100644
--- a/connectivity/source/commontools/CommonTools.cxx
+++ b/connectivity/source/commontools/CommonTools.cxx
@@ -219,8 +219,8 @@ OUString convertName2SQLName(const OUString& rName,const OUString& _rSpecials)
 
     OUStringBuffer aNewName(rName);
     sal_Int32 nLength = rName.getLength();
-    for (sal_Int32 i=0; i < nLength; ++pStr,++i )
-        if(!isCharOk(*pStr,_rSpecials))
+    for (sal_Int32 i=0; i < nLength; ++i)
+        if(!isCharOk(aNewName[i],_rSpecials))
             aNewName[i] = '_';
 
     return aNewName.makeStringAndClear();


More information about the Libreoffice-commits mailing list