From beccf7c9dd4966347fa31e11922fd73bd40dfeb9 Mon Sep 17 00:00:00 2001 From: Olivier Hallot Date: Wed, 1 Feb 2012 12:16:11 -0200 Subject: Fix for fdo43460 Part LIX getLength() to isEmpty() Part LIX Modules vcl (part 3) --- vcl/unx/generic/window/salframe.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'vcl/unx/generic/window') diff --git a/vcl/unx/generic/window/salframe.cxx b/vcl/unx/generic/window/salframe.cxx index b9b9b29932a5..c88279017a1f 100644 --- a/vcl/unx/generic/window/salframe.cxx +++ b/vcl/unx/generic/window/salframe.cxx @@ -2160,7 +2160,7 @@ void X11SalFrame::updateWMClass() pClass->res_name = const_cast(aResName.getStr()); rtl::OString aResClass = rtl::OUStringToOString(m_sWMClass, RTL_TEXTENCODING_ASCII_US); - const char *pResClass = aResClass.getLength() ? aResClass.getStr() : + const char *pResClass = !aResClass.isEmpty() ? aResClass.getStr() : SalGenericSystem::getFrameClassName(); pClass->res_class = const_cast(pResClass); @@ -3099,7 +3099,7 @@ void X11SalFrame::beginUnicodeSequence() rtl::OUString& rSeq( GetGenericData()->GetUnicodeCommand() ); DeletionListener aDeleteWatch( this ); - if( rSeq.getLength() ) + if( !rSeq.isEmpty() ) endUnicodeSequence(); rSeq = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "u" ) ); @@ -3124,7 +3124,7 @@ bool X11SalFrame::appendUnicodeSequence( sal_Unicode c ) { bool bRet = false; rtl::OUString& rSeq( GetGenericData()->GetUnicodeCommand() ); - if( rSeq.getLength() > 0 ) + if( !rSeq.isEmpty() ) { // range check if( (c >= sal_Unicode('0') && c <= sal_Unicode('9')) || @@ -3181,7 +3181,7 @@ bool X11SalFrame::endUnicodeSequence() CallCallback(SALEVENT_EXTTEXTINPUT, (void*)&aEv); } } - bool bWasInput = rSeq.getLength() > 0; + bool bWasInput = !rSeq.isEmpty(); rSeq = rtl::OUString(); if( bWasInput && ! aDeleteWatch.isDeleted() ) CallCallback(SALEVENT_ENDEXTTEXTINPUT, NULL); -- cgit