summaryrefslogtreecommitdiff
path: root/vcl/generic
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@alta.org.br>2012-01-31 16:44:12 -0200
committerOlivier Hallot <olivier.hallot@alta.org.br>2012-01-31 19:58:51 -0200
commit0a112c96fd8077a027dac88510915eb93903748b (patch)
tree190da82a604c8414687be76ac397ab2de43e84aa /vcl/generic
parent4d83e7010870fb8d74b19c28f1c4cd3fa616f514 (diff)
Fix for fdo43460 Part LVII getLength() to isEmpty()
Part LVII Modules vcl (part 1)
Diffstat (limited to 'vcl/generic')
-rw-r--r--vcl/generic/app/gensys.cxx2
-rw-r--r--vcl/generic/glyphs/gcach_ftyp.cxx2
-rw-r--r--vcl/generic/print/common_gfx.cxx2
-rw-r--r--vcl/generic/print/printerjob.cxx6
4 files changed, 6 insertions, 6 deletions
diff --git a/vcl/generic/app/gensys.cxx b/vcl/generic/app/gensys.cxx
index ddde4a152fa6..29b39ddd6a1c 100644
--- a/vcl/generic/app/gensys.cxx
+++ b/vcl/generic/app/gensys.cxx
@@ -163,7 +163,7 @@ const char* SalGenericSystem::getFrameClassName()
rtl::Bootstrap aBootstrap( aIni );
aBootstrap.getFrom( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ProductKey" ) ), aProduct );
- if( aProduct.getLength() )
+ if( !aProduct.isEmpty() )
aClassName.append( rtl::OUStringToOString( aProduct, osl_getThreadTextEncoding() ) );
else
aClassName.append( "VCLSalFrame" );
diff --git a/vcl/generic/glyphs/gcach_ftyp.cxx b/vcl/generic/glyphs/gcach_ftyp.cxx
index 7d14ce8cfc8f..93935e6ae7bf 100644
--- a/vcl/generic/glyphs/gcach_ftyp.cxx
+++ b/vcl/generic/glyphs/gcach_ftyp.cxx
@@ -600,7 +600,7 @@ void FreetypeManager::AddFontFile( const rtl::OString& rNormalizedName,
int nFaceNum, sal_IntPtr nFontId, const ImplDevFontAttributes& rDevFontAttr,
const ExtraKernInfo* pExtraKernInfo )
{
- if( !rNormalizedName.getLength() )
+ if( rNormalizedName.isEmpty() )
return;
if( maFontList.find( nFontId ) != maFontList.end() )
diff --git a/vcl/generic/print/common_gfx.cxx b/vcl/generic/print/common_gfx.cxx
index 26ac567b8467..8de0134283f3 100644
--- a/vcl/generic/print/common_gfx.cxx
+++ b/vcl/generic/print/common_gfx.cxx
@@ -1228,7 +1228,7 @@ PrinterGfx::DrawEPS( const Rectangle& rBoundingBox, void* pPtr, sal_uInt32 nSize
}
static sal_uInt16 nEps = 0;
- if( ! aDocTitle.getLength() )
+ if( aDocTitle.isEmpty() )
aDocTitle = rtl::OString::valueOf(static_cast<sal_Int32>(nEps++));
if( fLeft != fRight && fTop != fBottom )
diff --git a/vcl/generic/print/printerjob.cxx b/vcl/generic/print/printerjob.cxx
index 35633cd2c9b5..503d7afe8f7a 100644
--- a/vcl/generic/print/printerjob.cxx
+++ b/vcl/generic/print/printerjob.cxx
@@ -277,7 +277,7 @@ PrinterJob::~PrinterJob ()
delete mpJobTrailer;
// XXX should really call osl::remove routines
- if( maSpoolDirName.getLength() )
+ if( !maSpoolDirName.isEmpty() )
removeSpoolDir (maSpoolDirName);
// osl::Directory::remove (maSpoolDirName);
@@ -391,7 +391,7 @@ PrinterJob::StartJob (
}
maJobTitle = aFilterWS;
- if( aTitle.getLength() )
+ if( !aTitle.isEmpty() )
{
WritePS (mpJobHeader, "%%Title: (");
WritePS (mpJobHeader, aTitle);
@@ -461,7 +461,7 @@ PrinterJob::EndJob ()
FILE* pDestFILE = NULL;
/* create a destination either as file or as a pipe */
- sal_Bool bSpoolToFile = maFileName.getLength() > 0 ? sal_True : sal_False;
+ sal_Bool bSpoolToFile = !maFileName.isEmpty();
if (bSpoolToFile)
{
const rtl::OString aFileName = rtl::OUStringToOString (maFileName,