summaryrefslogtreecommitdiffstats
path: root/framework/source/uiconfiguration/uiconfigurationmanager.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/uiconfiguration/uiconfigurationmanager.cxx
parentEasyHack fdo#42454, remove code associated with unused icons (diff)
downloadcore-18692cc1412bd7eca37d80d4345c0ae775d94ac5.tar.gz
core-18692cc1412bd7eca37d80d4345c0ae775d94ac5.zip
Fix for fdo43460 Part XX getLength() to isEmpty()
Part XX Module framework
Diffstat (limited to 'framework/source/uiconfiguration/uiconfigurationmanager.cxx')
-rw-r--r--framework/source/uiconfiguration/uiconfigurationmanager.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/source/uiconfiguration/uiconfigurationmanager.cxx b/framework/source/uiconfiguration/uiconfigurationmanager.cxx
index 66369b86ece1..0803ff01dc69 100644
--- a/framework/source/uiconfiguration/uiconfigurationmanager.cxx
+++ b/framework/source/uiconfiguration/uiconfigurationmanager.cxx
@@ -215,7 +215,7 @@ void UIConfigurationManager::impl_preloadUIElementTypeList( sal_Int16 nElementTy
rtl::OUString aExtension( aUIElementNames[n].copy( nIndex+1 ));
rtl::OUString aUIElementName( aUIElementNames[n].copy( 0, nIndex ));
- if (( aUIElementName.getLength() > 0 ) &&
+ if (!aUIElementName.isEmpty() &&
( aExtension.equalsIgnoreAsciiCaseAsciiL( "xml", 3 )))
{
aUIElementData.aResourceURL = aResURLPrefix + aUIElementName;
@@ -240,7 +240,7 @@ void UIConfigurationManager::impl_requestUIElementData( sal_Int16 nElementType,
UIElementType& rElementTypeData = m_aUIElements[nElementType];
Reference< XStorage > xElementTypeStorage = rElementTypeData.xStorage;
- if ( xElementTypeStorage.is() && aUIElementData.aName.getLength() )
+ if ( xElementTypeStorage.is() && !aUIElementData.aName.isEmpty() )
{
try
{