summaryrefslogtreecommitdiff
path: root/framework/source/uielement/newmenucontroller.cxx
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@alta.org.br>2011-12-26 14:20:50 -0200
committerJan Holesovsky <kendy@suse.cz>2011-12-30 10:56:15 +0100
commit18692cc1412bd7eca37d80d4345c0ae775d94ac5 (patch)
tree21d4445a80835fc86826d9adf098dedc76b9ff07 /framework/source/uielement/newmenucontroller.cxx
parente220f41cb2486d2ad101d98e48fbbc40c9fd08c3 (diff)
Fix for fdo43460 Part XX getLength() to isEmpty()
Part XX Module framework
Diffstat (limited to 'framework/source/uielement/newmenucontroller.cxx')
-rw-r--r--framework/source/uielement/newmenucontroller.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/source/uielement/newmenucontroller.cxx b/framework/source/uielement/newmenucontroller.cxx
index dad7a1922c47..3fc4a5a72834 100644
--- a/framework/source/uielement/newmenucontroller.cxx
+++ b/framework/source/uielement/newmenucontroller.cxx
@@ -110,7 +110,7 @@ void NewMenuController::setMenuImages( PopupMenu* pPopupMenu, sal_Bool bSetImage
if ( pInfo != m_aAddInfoForItem.end() )
aImageId = pInfo->second.aImageId; // Retrieve image id for menu item
- if ( aImageId.getLength() > 0 )
+ if ( !aImageId.isEmpty() )
{
aImage = GetImageFromURL( xFrame, aImageId, false );
if ( !!aImage )
@@ -143,7 +143,7 @@ void NewMenuController::determineAndSetNewDocAccel( PopupMenu* pPopupMenu, const
sal_Bool bFound( sal_False );
rtl::OUString aCommand;
- if ( m_aEmptyDocURL.getLength() > 0 )
+ if ( !m_aEmptyDocURL.isEmpty() )
{
// Search for the empty document URL
@@ -167,7 +167,7 @@ void NewMenuController::determineAndSetNewDocAccel( PopupMenu* pPopupMenu, const
{
// Search for the default module name
rtl::OUString aDefaultModuleName( SvtModuleOptions().GetDefaultModuleName() );
- if ( aDefaultModuleName.getLength() > 0 )
+ if ( !aDefaultModuleName.isEmpty() )
{
for ( sal_uInt32 i = 0; i < sal_uInt32( nCount ); i++ )
{
@@ -507,7 +507,7 @@ void NewMenuController::impl_setPopupMenu()
m_bModuleIdentified = sal_True;
Reference< XNameAccess > xNameAccess( xModuleManager, UNO_QUERY );
- if (( m_aModuleIdentifier.getLength() > 0 ) && xNameAccess.is() )
+ if ( !m_aModuleIdentifier.isEmpty() && xNameAccess.is() )
{
Sequence< PropertyValue > aSeq;