diff options
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; } |