From 85d1ce27ad9ce7a3740bd8bbbaf1d3abe643ba10 Mon Sep 17 00:00:00 2001 From: Olivier Hallot Date: Mon, 2 Jan 2012 15:58:10 -0200 Subject: Fix for fdo43460 Part XXVII getLength() to isEmpty() Please find attached a partial fix for Easy Hack FDO43460 Part XXVII Modules padmin, pyuno, rdbmaker, regexp, registry, rsc, sal --- padmin/source/adddlg.cxx | 4 ++-- padmin/source/cmddlg.cxx | 2 +- padmin/source/padialog.cxx | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'padmin') diff --git a/padmin/source/adddlg.cxx b/padmin/source/adddlg.cxx index 62a4f1417a89..d23f4268b888 100644 --- a/padmin/source/adddlg.cxx +++ b/padmin/source/adddlg.cxx @@ -165,7 +165,7 @@ void APChooseDriverPage::updateDrivers( bool bRefresh, const rtl::OUString& rSel for( std::list< rtl::OUString >::const_iterator it = aDrivers.begin(); it != aDrivers.end(); ++it ) { rtl::OUString aDriver( psp::PPDParser::getPPDPrinterName( *it ) ); - if( aDriver.getLength() ) + if( !aDriver.isEmpty() ) { int nPos = m_aDriverBox.InsertEntry( aDriver ); m_aDriverBox.SetEntryData( nPos, new String( *it ) ); @@ -567,7 +567,7 @@ APOldPrinterPage::APOldPrinterPage( AddPrinterDialog* pParent ) aValue = aConfig.ReadKey( "PageSize", aDefPageSize ); int nLeft, nRight, nTop, nBottom; - if( aValue.getLength() && + if( !aValue.isEmpty() && aInfo.m_pParser->getMargins( rtl::OStringToOUString(aValue, aEncoding), nLeft, nRight, nTop, nBottom ) ) { diff --git a/padmin/source/cmddlg.cxx b/padmin/source/cmddlg.cxx index 5dc0864d276c..6ab1dfc69677 100644 --- a/padmin/source/cmddlg.cxx +++ b/padmin/source/cmddlg.cxx @@ -344,7 +344,7 @@ void RTSCommandPage::save() aToken.compareToAscii( "external_dialog" ) ) { - if( aToken.getLength() ) + if( !aToken.isEmpty() ) { if( aFeatures.Len() ) aFeatures += ','; diff --git a/padmin/source/padialog.cxx b/padmin/source/padialog.cxx index 51e996e005ea..1aeab2c6c1a2 100644 --- a/padmin/source/padialog.cxx +++ b/padmin/source/padialog.cxx @@ -278,7 +278,7 @@ void PADialog::UpdateDefPrt() void PADialog::UpdateText() { OUString aDev( getSelectedDevice() ); - if( aDev.getLength() ) + if( !aDev.isEmpty() ) { const PrinterInfo& rInfo = m_rPIManager.getPrinterInfo( aDev ); String aDriver( rInfo.m_aPrinterName ); @@ -722,7 +722,7 @@ void PADialog::UpdateDevice() while( nIndex != -1 && ! bAutoQueue ) { OUString aToken( rInfo.m_aFeatures.getToken( 0, ',', nIndex ) ); - if( aToken.getLength() ) + if( !aToken.isEmpty() ) { if( aToken.compareToAscii( "autoqueue" ) == 0 ) bAutoQueue = true; -- cgit