From a2454a42ad2236f0f6b88be166bc7e6a8f90f036 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Sat, 9 Mar 2013 17:22:11 +0100 Subject: fdo#43460: use isEmpty() Change-Id: I01f503ea5268245cc4f98524931730cfa063d57e --- extensions/source/nsplugin/source/so_main.cxx | 4 ++-- extensions/source/plugin/win/winmgr.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'extensions') 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( -- cgit