summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-03-09 17:22:11 +0100
committerThomas Arnhold <thomas@arnhold.org>2013-03-09 20:32:39 +0100
commita2454a42ad2236f0f6b88be166bc7e6a8f90f036 (patch)
tree7f6dfc38cfd617f41c63a17640ec7ef8650a2c45 /extensions
parenteba2ef9504fe4034cbb44840d459d82ab8a141b1 (diff)
fdo#43460: use isEmpty()
Change-Id: I01f503ea5268245cc4f98524931730cfa063d57e
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/nsplugin/source/so_main.cxx4
-rw-r--r--extensions/source/plugin/win/winmgr.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/extensions/source/nsplugin/source/so_main.cxx b/extensions/source/nsplugin/source/so_main.cxx
index 054fd77d4920..f62383f843f6 100644
--- a/extensions/source/nsplugin/source/so_main.cxx
+++ b/extensions/source/nsplugin/source/so_main.cxx
@@ -313,7 +313,7 @@ Reference< lang::XMultiServiceFactory > SAL_CALL start_office(NSP_PIPE_FD read_f
aPluginPipeName = ::rtl::OUString::valueOf( aPath.hashCode() );
// accept string
- OSL_ASSERT( buf.getLength() == 0 );
+ OSL_ASSERT( buf.isEmpty() );
buf.appendAscii( RTL_CONSTASCII_STRINGPARAM( "--accept=pipe,name=" ) );
buf.append( aPluginPipeName ); //user installation path as pipe name
buf.appendAscii( RTL_CONSTASCII_STRINGPARAM( ";urp;" ) );
@@ -332,7 +332,7 @@ Reference< lang::XMultiServiceFactory > SAL_CALL start_office(NSP_PIPE_FD read_f
bridge::UnoUrlResolver::create( xLocalContext ) );
// connection string
- OSL_ASSERT( buf.getLength() == 0 );
+ OSL_ASSERT( buf.isEmpty() );
buf.appendAscii( RTL_CONSTASCII_STRINGPARAM( "uno:pipe,name=" ) );
buf.append( aPluginPipeName );
buf.appendAscii( RTL_CONSTASCII_STRINGPARAM(
diff --git a/extensions/source/plugin/win/winmgr.cxx b/extensions/source/plugin/win/winmgr.cxx
index 4f62ecd1c881..81d1e55080eb 100644
--- a/extensions/source/plugin/win/winmgr.cxx
+++ b/extensions/source/plugin/win/winmgr.cxx
@@ -387,7 +387,7 @@ Sequence< PluginDescription > XPluginManager_Impl::impl_getPluginDescriptions(vo
PluginDescription & rDescr = pDescriptions[nStart+nTok];
OString aMIMEToken( aMIME.getToken( 0, '|', nIndex ) );
OString aExtToken2( aExt.getToken( 0, '|', nIndex2 ) );
- if( aMIMEToken.getLength() == 0 || aExtToken2.getLength() == 0 )
+ if( aMIMEToken.isEmpty() || aExtToken2.isEmpty() )
continue;
rDescr.Mimetype = OUString(