summaryrefslogtreecommitdiff
path: root/cui/source/customize/cfgutil.cxx
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@alta.org.br>2011-12-16 17:29:07 -0200
committerIvan Timofeev <timofeev.i.s@gmail.com>2011-12-20 19:28:37 +0400
commit1375183d465fb17db513dfe16ac522e48573a4c0 (patch)
tree149a5335e02bd92c33201cc49a4c85c390969e46 /cui/source/customize/cfgutil.cxx
parent170d75c3f58e500bda864bf7b7aeefd06716a0a6 (diff)
Fix for fdo43460 Part XI getLength() to isEmpty()
Part XI Module cui
Diffstat (limited to 'cui/source/customize/cfgutil.cxx')
-rw-r--r--cui/source/customize/cfgutil.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/cui/source/customize/cfgutil.cxx b/cui/source/customize/cfgutil.cxx
index b25e2e443fab..123088b82a2e 100644
--- a/cui/source/customize/cfgutil.cxx
+++ b/cui/source/customize/cfgutil.cxx
@@ -145,7 +145,7 @@ sal_Bool SfxStylesInfo_Impl::parseStyleCommand(SfxStyleInfo_Impl& aStyle)
if (sArg.indexOf(CMDURL_FPART_ONLY) == 0)
aStyle.sFamily = sArg.copy(LEN_FPART, sArg.getLength()-LEN_FPART);
- if (aStyle.sFamily.getLength() && aStyle.sStyle.getLength())
+ if (!(aStyle.sFamily.isEmpty() || aStyle.sStyle.isEmpty()))
return sal_True;
return sal_False;
@@ -178,7 +178,7 @@ void SfxStylesInfo_Impl::getLabel4Style(SfxStyleInfo_Impl& aStyle)
catch(const css::uno::Exception&)
{ aStyle.sLabel = ::rtl::OUString(); }
- if (!aStyle.sLabel.getLength())
+ if (aStyle.sLabel.isEmpty())
{
aStyle.sLabel = aStyle.sCommand;
}
@@ -503,7 +503,7 @@ void SfxConfigGroupListBox_Impl::InitModule()
try
{
m_xModuleCategoryInfo->getByName(sGroupID) >>= sGroupName;
- if (!sGroupName.getLength())
+ if (sGroupName.isEmpty())
continue;
}
catch(const css::container::NoSuchElementException&)
@@ -813,7 +813,7 @@ Image SfxConfigGroupListBox_Impl::GetImage(
}
}
}
- if( factoryURL.getLength() > 0 )
+ if( !factoryURL.isEmpty() )
{
aImage = SvFileInformationManager::GetFileImage( INetURLObject(factoryURL), false );
}
@@ -886,7 +886,7 @@ SfxConfigGroupListBox_Impl::getDocumentModel( Reference< XComponentContext >& xC
{ sUIName = ::rtl::OUString(); }
// fallback for missing UINames !?
- if (!sUIName.getLength())
+ if (sUIName.isEmpty())
{
sUIName = sCommand;
}