diff options
author | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-11 11:37:33 -0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-11 18:43:07 -0200 |
commit | 806dce17d6631738c7388d8d68d8b5ac2e4c11a8 (patch) | |
tree | 0759954593c2fa8a85b94e5d3a4b4f40e913f091 /shell/source/unix | |
parent | e33702442a22a72f96a093fbfdf8bfac217f416f (diff) |
Fix for fdo43460 Part XXXIV getLength() to isEmpty()
Part XXXIV
Modules
shell, slideshow, sot, starmath
Diffstat (limited to 'shell/source/unix')
-rw-r--r-- | shell/source/unix/exec/shellexec.cxx | 4 | ||||
-rw-r--r-- | shell/source/unix/sysshell/recently_used_file.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/shell/source/unix/exec/shellexec.cxx b/shell/source/unix/exec/shellexec.cxx index 39eed5a33242..988eefdc22d5 100644 --- a/shell/source/unix/exec/shellexec.cxx +++ b/shell/source/unix/exec/shellexec.cxx @@ -144,7 +144,7 @@ void SAL_CALL ShellExec::execute( const OUString& aCommand, const OUString& aPar OUString aURL( com::sun::star::uri::ExternalUriReferenceTranslator::create( m_xContext)->translateToExternal(aCommand)); - if ( aURL.getLength() == 0 && aCommand.getLength() != 0 ) + if ( aURL.isEmpty() && !aCommand.isEmpty() ) { throw RuntimeException( (OUString( @@ -207,7 +207,7 @@ void SAL_CALL ShellExec::execute( const OUString& aCommand, const OUString& aPar // Respect the desktop environment - if there is an executable named // <desktop-environement-is>-open-url, pass the url to this one instead // of the default "open-url" script. - if ( m_aDesktopEnvironment.getLength() > 0 ) + if ( !m_aDesktopEnvironment.isEmpty() ) { OString aDesktopEnvironment(m_aDesktopEnvironment.toAsciiLowerCase()); OStringBuffer aCopy(aTmp); diff --git a/shell/source/unix/sysshell/recently_used_file.cxx b/shell/source/unix/sysshell/recently_used_file.cxx index 4b7bea0ede0b..0336a7f72d57 100644 --- a/shell/source/unix/sysshell/recently_used_file.cxx +++ b/shell/source/unix/sysshell/recently_used_file.cxx @@ -49,7 +49,7 @@ namespace /* private */ { inline void ensure_final_slash(/*inout*/ rtl::OUString& path) { - if ((path.getLength() > 0) && + if (!path.isEmpty() && (SLASH.pData->buffer[0] != path.pData->buffer[path.getLength() - 1])) path += SLASH; } |