summaryrefslogtreecommitdiffstats
path: root/svx/source/gallery2
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@alta.org.br>2012-01-14 12:10:39 -0200
committerOlivier Hallot <olivier.hallot@alta.org.br>2012-01-14 12:11:48 -0200
commitdc04d67e94d9302278fc049d6617b62fe461ac66 (patch)
tree3dc4e0e5ee4406483cc1bc8c7bb690a1b2c6efe9 /svx/source/gallery2
parentSome cppcheck cleaning (diff)
downloadcore-dc04d67e94d9302278fc049d6617b62fe461ac66.tar.gz
core-dc04d67e94d9302278fc049d6617b62fe461ac66.zip
Fix for fdo43460 Part XXXVIII getLength() to isEmpty()
Part XXXVIII Modules svx
Diffstat (limited to 'svx/source/gallery2')
-rw-r--r--svx/source/gallery2/gallery1.cxx10
-rw-r--r--svx/source/gallery2/galmisc.cxx2
2 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/gallery2/gallery1.cxx b/svx/source/gallery2/gallery1.cxx
index 7a26e0dee8c5..64a94ab2980d 100644
--- a/svx/source/gallery2/gallery1.cxx
+++ b/svx/source/gallery2/gallery1.cxx
@@ -79,7 +79,7 @@ GalleryThemeEntry::GalleryThemeEntry( const INetURLObject& rBaseURL, const Strin
if( nId && bThemeNameFromResource )
aName = String( GAL_RESID( RID_GALLERYSTR_THEME_START + (sal_uInt16) nId ) );
- if( !aName.getLength() )
+ if( aName.isEmpty() )
aName = rName;
}
@@ -345,7 +345,7 @@ void Gallery::ImplLoadSubDirs( const INetURLObject& rBaseURL, sal_Bool& rbDirIsR
{
}
- if( aTitle.getLength() )
+ if( !aTitle.isEmpty() )
{
try
{
@@ -371,7 +371,7 @@ void Gallery::ImplLoadSubDirs( const INetURLObject& rBaseURL, sal_Bool& rbDirIsR
{
}
- if( aTitle.getLength() )
+ if( !aTitle.isEmpty() )
{
try
{
@@ -399,7 +399,7 @@ void Gallery::ImplLoadSubDirs( const INetURLObject& rBaseURL, sal_Bool& rbDirIsR
{
}
- if( aTitle.getLength() )
+ if( !aTitle.isEmpty() )
{
try
{
@@ -537,7 +537,7 @@ GalleryThemeEntry* Gallery::ImplGetThemeEntry( const rtl::OUString& rThemeName )
{
GalleryThemeEntry* pFound = NULL;
- if( rThemeName.getLength() )
+ if( !rThemeName.isEmpty() )
{
for ( size_t i = 0, n = aThemeList.size(); i < n && !pFound; ++i )
if( rThemeName == aThemeList[ i ]->GetThemeName() )
diff --git a/svx/source/gallery2/galmisc.cxx b/svx/source/gallery2/galmisc.cxx
index aa4c1ee74629..b7262c1073ac 100644
--- a/svx/source/gallery2/galmisc.cxx
+++ b/svx/source/gallery2/galmisc.cxx
@@ -284,7 +284,7 @@ sal_Bool FileExists( const INetURLObject& rURL )
OUString aTitle;
aCnt.getPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("Title")) ) >>= aTitle;
- bRet = ( aTitle.getLength() > 0 );
+ bRet = ( !aTitle.isEmpty() );
}
catch( const ucb::ContentCreationException& )
{