diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-03-09 17:44:52 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-03-09 20:32:40 +0100 |
commit | d2f57b6c1275e0e6ed7f214d471ddb84ecb1b4ad (patch) | |
tree | 1728c15960c67ec9cc322e83ed37e0dc8e1f51b6 /sal | |
parent | fdo#43460: use isEmpty() (diff) | |
download | core-d2f57b6c1275e0e6ed7f214d471ddb84ecb1b4ad.tar.gz core-d2f57b6c1275e0e6ed7f214d471ddb84ecb1b4ad.zip |
fdo#43460: use isEmpty()
Change-Id: I47b35af71277fdda19767a553c960bf12164b92f
Diffstat (limited to 'sal')
-rw-r--r-- | sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx | 6 | ||||
-rw-r--r-- | sal/workben/testfile.cxx | 12 |
2 files changed, 9 insertions, 9 deletions
diff --git a/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx b/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx index 297777178b4c..0cab17f5b546 100644 --- a/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx +++ b/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx @@ -177,7 +177,7 @@ namespace rtl_Bootstrap rtl::OUString suGetname; aBootstrap.getIniName( suGetname ); printUString( suGetname ); - CPPUNIT_ASSERT_MESSAGE("ctor error without initial file.", suGetname.getLength() != 0 ); + CPPUNIT_ASSERT_MESSAGE("ctor error without initial file.", !suGetname.isEmpty() ); } CPPUNIT_TEST_SUITE(ctor); @@ -238,7 +238,7 @@ namespace rtl_Bootstrap rtl::OUString suValuename ("INHERITED_VALUE"); aBootstrap.getFrom( suValuename, suGetname ); printUString( suGetname ); - CPPUNIT_ASSERT_MESSAGE("get the value of a variable in ini file.", suGetname.getLength() != 0 ); + CPPUNIT_ASSERT_MESSAGE("get the value of a variable in ini file.", !suGetname.isEmpty()); } //use defaut value @@ -440,7 +440,7 @@ namespace rtl_Bootstrap rtl::OUString suValuename("INHERITED_VALUE"); Bootstrap::get( suValuename, suGetname ); printUString( suGetname ); - CPPUNIT_ASSERT_MESSAGE("setIniFilename and get value of the argument.", suGetname.getLength() != 0 ); + CPPUNIT_ASSERT_MESSAGE("setIniFilename and get value of the argument.", !suGetname.isEmpty()); } CPPUNIT_TEST_SUITE(setIniFilename); diff --git a/sal/workben/testfile.cxx b/sal/workben/testfile.cxx index a670f7b7d1d2..473e25a4ddf8 100644 --- a/sal/workben/testfile.cxx +++ b/sal/workben/testfile.cxx @@ -2152,7 +2152,7 @@ void ConvertPathTest(rtl::OUString& strPath) // getFileURLFromSystemPath //-------------------------------------------------- - if ( strNormPath.getLength() != 0 ) + if ( !strNormPath.isEmpty() ) { rc=FileBase::getFileURLFromSystemPath( strNormPath, strFileURL ); @@ -2172,7 +2172,7 @@ void ConvertPathTest(rtl::OUString& strPath) // getNormalizedPathFromFileURL //-------------------------------------------------- - if ( strFileURL.getLength() != 0 ) + if ( !strFileURL.isEmpty() ) { rc=FileBase::getSystemPathFromFileURL( strFileURL, strNormPathFromFileURL ); @@ -2193,7 +2193,7 @@ void ConvertPathTest(rtl::OUString& strPath) // getSystemPathFromFileURL //-------------------------------------------------- - if ( strNormPath.getLength() != 0 ) + if ( !strNormPath.isEmpty() ) { rc=FileBase::getSystemPathFromFileURL( strNormPath, strSystemPath ); @@ -2331,7 +2331,7 @@ void SearchPathTest(void) // searchFileURL (with a normalized path) //-------------------------------------------------- - if ( strNormPath.getLength() != 0 ) + if ( !strNormPath.isEmpty() ) { printf( "\nSearch-Normalized-Path (with a normalized path) : "); printFileName ( strNormPath ); @@ -2355,7 +2355,7 @@ void SearchPathTest(void) // searchFileURL (with a File-URL) //-------------------------------------------------- - if ( strFileURL.getLength() != 0 ) + if ( !strFileURL.isEmpty() ) { printf( "\nSearch-Normalized-Path (with a FileURL) : "); printFileName( strFileURL ); @@ -2379,7 +2379,7 @@ void SearchPathTest(void) // searchFileURL (with a systempath) //-------------------------------------------------- - if ( strSystemPath.getLength() != 0 ) + if ( !strSystemPath.isEmpty() ) { printf( "\nSearch-Normalized-Path (with a SystemPath) : "); printFileName( strSystemPath ); |