diff options
author | Olivier Hallot <olivier.hallot@documentfoundation.org> | 2012-01-02 15:58:10 -0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-01-02 19:17:17 +0100 |
commit | 85d1ce27ad9ce7a3740bd8bbbaf1d3abe643ba10 (patch) | |
tree | 9c27a22d1d2ccb1bd78658ee4152c30ea4a70137 /padmin/source/adddlg.cxx | |
parent | Fix for fdo43460 Part XXVI getLength() to isEmpty() (diff) | |
download | core-85d1ce27ad9ce7a3740bd8bbbaf1d3abe643ba10.tar.gz core-85d1ce27ad9ce7a3740bd8bbbaf1d3abe643ba10.zip |
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
Diffstat (limited to 'padmin/source/adddlg.cxx')
-rw-r--r-- | padmin/source/adddlg.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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 ) ) { |