summaryrefslogtreecommitdiffstats
path: root/framework/source/uifactory/menubarfactory.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/uifactory/menubarfactory.cxx')
-rw-r--r--framework/source/uifactory/menubarfactory.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/source/uifactory/menubarfactory.cxx b/framework/source/uifactory/menubarfactory.cxx
index 47c0bce81d05..7e2de9c2111b 100644
--- a/framework/source/uifactory/menubarfactory.cxx
+++ b/framework/source/uifactory/menubarfactory.cxx
@@ -167,7 +167,7 @@ void MenuBarFactory::CreateUIElement(const ::rtl::OUString& ResourceURL
if ( !bHasSettings )
{
rtl::OUString aModuleIdentifier = _xModuleManager->identify( Reference< XInterface >( xFrame, UNO_QUERY ));
- if ( aModuleIdentifier.getLength() )
+ if ( !aModuleIdentifier.isEmpty() )
{
Reference< ::com::sun::star::ui::XModuleUIConfigurationManagerSupplier > xModuleCfgSupplier(
_xServiceManager->createInstance( SERVICENAME_MODULEUICONFIGURATIONMANAGERSUPPLIER ), UNO_QUERY );