diff options
author | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-16 15:46:57 -0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-16 18:49:04 -0200 |
commit | 81e50fb2e378120d05f7ffdee216ce6e248e189b (patch) | |
tree | 0fa6f4779bb3b4970e4720bef4ac36c90514b45c /tools/source/misc | |
parent | 69d91300547f6ed45a9a499ffae71c2c0f91c441 (diff) |
Fix for fdo43460 Part XXXIX getLength() to isEmpty()
Part XXXIX
Modules
testtools, toolkit, tools
Diffstat (limited to 'tools/source/misc')
-rw-r--r-- | tools/source/misc/appendunixshellword.cxx | 2 | ||||
-rw-r--r-- | tools/source/misc/getprocessworkingdir.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/source/misc/appendunixshellword.cxx b/tools/source/misc/appendunixshellword.cxx index 029d1da94214..64c8aa45ea21 100644 --- a/tools/source/misc/appendunixshellword.cxx +++ b/tools/source/misc/appendunixshellword.cxx @@ -45,7 +45,7 @@ void appendUnixShellWord( rtl::OStringBuffer * accumulator, rtl::OString const & text) { OSL_ASSERT(accumulator != NULL); - if (text.getLength() == 0) { + if (text.isEmpty()) { accumulator->append(RTL_CONSTASCII_STRINGPARAM("''")); } else { bool quoted = false; diff --git a/tools/source/misc/getprocessworkingdir.cxx b/tools/source/misc/getprocessworkingdir.cxx index 29f7732f709b..c9c031729e22 100644 --- a/tools/source/misc/getprocessworkingdir.cxx +++ b/tools/source/misc/getprocessworkingdir.cxx @@ -45,7 +45,7 @@ bool getProcessWorkingDir(rtl::OUString &rUrl) rUrl = rtl::OUString(); rtl::OUString s(RTL_CONSTASCII_USTRINGPARAM("$OOO_CWD")); rtl::Bootstrap::expandMacros(s); - if (s.getLength() == 0) + if (s.isEmpty()) { if (osl_getProcessWorkingDir(&rUrl.pData) == osl_Process_E_None) return true; |