[Libreoffice-commits] .: binfilter/bf_svx

Eike Rathke erack at kemper.freedesktop.org
Mon Nov 21 07:24:30 PST 2011


 binfilter/bf_svx/source/items/svx_paperinf.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7085c55b78d0346197feb964d124565436121d11
Author: Eike Rathke <erack at redhat.com>
Date:   Mon Nov 21 16:19:05 2011 +0100

    OUString has no Len(), use !isEmpty() here

diff --git a/binfilter/bf_svx/source/items/svx_paperinf.cxx b/binfilter/bf_svx/source/items/svx_paperinf.cxx
index 4c9e631..0f32c0b 100644
--- a/binfilter/bf_svx/source/items/svx_paperinf.cxx
+++ b/binfilter/bf_svx/source/items/svx_paperinf.cxx
@@ -115,7 +115,7 @@ static const int nTabSize = SAL_N_ELEMENTS(aDinTab);
 
 /*?*/ inline BOOL IsValidPrinter( const Printer* pPtr )
 /*?*/ {
-/*?*/   return pPtr->GetName().getLength() ? TRUE : FALSE;
+/*?*/   return !pPtr->GetName().isEmpty();
 /*?*/ }
 
 /*------------------------------------------------------------------------


More information about the Libreoffice-commits mailing list