summaryrefslogtreecommitdiff
path: root/padmin
diff options
context:
space:
mode:
Diffstat (limited to 'padmin')
-rw-r--r--padmin/source/adddlg.cxx4
-rw-r--r--padmin/source/cmddlg.cxx2
-rw-r--r--padmin/source/padialog.cxx4
3 files changed, 5 insertions, 5 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 ) )
{
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;