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

Michael Stahl mstahl at redhat.com
Fri Sep 13 05:08:29 PDT 2013


 connectivity/source/commontools/dbconversion.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3ca5b83368a82f0798f3e1122264d9788ac7300e
Author: Michael Stahl <mstahl at redhat.com>
Date:   Fri Sep 13 14:05:15 2013 +0200

    fix Apple g++ 4.2.1 warning in DBTypeConversion::toDateTime
    
    Change-Id: I467494c1731999c50883f96301b00a3dc1282c73

diff --git a/connectivity/source/commontools/dbconversion.cxx b/connectivity/source/commontools/dbconversion.cxx
index 1449b99..5aa5e1a 100644
--- a/connectivity/source/commontools/dbconversion.cxx
+++ b/connectivity/source/commontools/dbconversion.cxx
@@ -422,7 +422,7 @@ namespace dbtools
         {
             const sal_Unicode *p = _sSQLString.getStr() + nSeparation;
             const sal_Unicode *const begin = p;
-            for(;isspace(*p);++p);
+            while (isspace(*p)) { ++p; }
             nSeparation += p - begin;
             aTime = toTime( _sSQLString.copy( nSeparation ) );
         }


More information about the Libreoffice-commits mailing list