[Libreoffice-commits] .: xmlsecurity/tools

Thomas Arnhold tarnhold at kemper.freedesktop.org
Fri Jan 28 06:21:57 PST 2011


 xmlsecurity/tools/standalone/csfit/helper.cxx   |    4 ++--
 xmlsecurity/tools/standalone/mscsfit/helper.cxx |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 6f3191fc75c89613f4d1b37eeaf44cdc2751606a
Author: Thomas Arnhold <thomas at arnhold.org>
Date:   Fri Jan 28 15:19:18 2011 +0100

    Replace empty equalsAscii() with getLength().

diff --git a/xmlsecurity/tools/standalone/csfit/helper.cxx b/xmlsecurity/tools/standalone/csfit/helper.cxx
index 7adc229..6487f89 100644
--- a/xmlsecurity/tools/standalone/csfit/helper.cxx
+++ b/xmlsecurity/tools/standalone/csfit/helper.cxx
@@ -94,11 +94,11 @@ Reference< XMultiComponentFactory > serviceManager( Reference< XComponentContext
     Reference< XMultiComponentFactory > xUsedServiceManager = NULL ;
     Reference< XComponentContext > xUsedComponentContext = NULL ;
 
-    OSL_ENSURE( !sUnoUrl.equalsAscii( "" ) ,
+    OSL_ENSURE( sUnoUrl.getLength() ,
         "serviceManager - "
         "No uno URI specified" ) ;
 
-    OSL_ENSURE( !sRdbUrl.equalsAscii( "" ) ,
+    OSL_ENSURE( sRdbUrl.getLength() ,
         "serviceManager - "
         "No rdb URI specified" ) ;
 
diff --git a/xmlsecurity/tools/standalone/mscsfit/helper.cxx b/xmlsecurity/tools/standalone/mscsfit/helper.cxx
index 6cdb0e6..9a7b4bb 100644
--- a/xmlsecurity/tools/standalone/mscsfit/helper.cxx
+++ b/xmlsecurity/tools/standalone/mscsfit/helper.cxx
@@ -62,11 +62,11 @@ Reference< XMultiComponentFactory > serviceManager( Reference< XComponentContext
     Reference< XMultiComponentFactory > xUsedServiceManager = NULL ;
     Reference< XComponentContext > xUsedComponentContext = NULL ;
 
-    OSL_ENSURE( !sUnoUrl.equalsAscii( "" ) ,
+    OSL_ENSURE( sUnoUrl.getLength() ,
         "serviceManager - "
         "No uno URI specified" ) ;
 
-    OSL_ENSURE( !sRdbUrl.equalsAscii( "" ) ,
+    OSL_ENSURE( sRdbUrl.getLength() ,
         "serviceManager - "
         "No rdb URI specified" ) ;
 


More information about the Libreoffice-commits mailing list