testtools/source/bridgetest/bridgetest.cxx|4 +-
toolkit/source/awt/vclxtoolkit.cxx|4 +-
toolkit/source/awt/vclxwindow.cxx |2 -
toolkit/source/awt/vclxwindows.cxx|8 ++---
toolkit/source/controls/controlmodelcontainerbase.cxx |8 ++---
toolkit/source/controls/dialogcontrol.cxx | 12 +++
toolkit/source/controls/geometrycontrolmodel.cxx |2 -
toolkit/source/controls/unocontrol.cxx|2 -
toolkit/source/controls/unocontrolmodel.cxx |8 ++---
toolkit/source/controls/unocontrols.cxx |2 -
toolkit/source/helper/formpdfexport.cxx |2 -
toolkit/source/helper/tkresmgr.cxx|2 -
toolkit/source/helper/vclunohelper.cxx|4 +-
tools/bootstrp/cppdep.cxx |2 -
tools/bootstrp/rscdep.cxx |2 -
tools/inc/tools/diagnose_ex.h |2 -
tools/qa/cppunit/test_stream.cxx |2 -
tools/source/fsys/dirent.cxx | 26
tools/source/fsys/tempfile.cxx|2 -
tools/source/fsys/urlobj.cxx | 18 +--
tools/source/generic/svlibrary.cxx|2 -
tools/source/inet/inetmime.cxx|2 -
tools/source/misc/appendunixshellword.cxx |2 -
tools/source/misc/getprocessworkingdir.cxx|2 -
tools/source/rc/resmgr.cxx| 28 +-
25 files changed, 75 insertions(+), 75 deletions(-)
New commits:
commit 81e50fb2e378120d05f7ffdee216ce6e248e189b
Author: Olivier Hallot
Date: Mon Jan 16 15:46:57 2012 -0200
Fix for fdo43460 Part XXXIX getLength() to isEmpty()
Part XXXIX
Modules
testtools, toolkit, tools
diff --git a/testtools/source/bridgetest/bridgetest.cxx
b/testtools/source/bridgetest/bridgetest.cxx
index 27af77b..46435fb 100644
--- a/testtools/source/bridgetest/bridgetest.cxx
+++ b/testtools/source/bridgetest/bridgetest.cxx
@@ -100,7 +100,7 @@ static bool check( bool b , char const * message )
namespace {
bool checkEmpty(rtl::OUString const & string, char const * message) {
-bool ok = string.getLength() == 0;
+bool ok = string.isEmpty();
if (!ok) {
fprintf(
stderr, "%s failed: %s\n", message,
@@ -593,7 +593,7 @@ static sal_Bool performTest(
bRet &= check(
xLBT->getNullPolyLong().member == 0, "getNullPolyLong");
bRet &= check(
-xLBT->getNullPolyString().member.getLength() == 0,
+xLBT->getNullPolyString().member.isEmpty(),
"getNullPolyString");
bRet &= check(
xLBT->getNullPolyType().member == Type(),
diff --git a/toolkit/source/awt/vclxtoolkit.cxx
b/toolkit/source/awt/vclxtoolkit.cxx
index b9d94be..3a8e2c6 100644
--- a/toolkit/source/awt/vclxtoolkit.cxx
+++ b/toolkit/source/awt/vclxtoolkit.cxx
@@ -366,7 +366,7 @@ sal_uInt16 ImplGetComponentType( const String& rServiceName
)
ComponentInfo aSearch;
rtl::OString aServiceName(rtl::OUStringToOString(rServiceName,
osl_getThreadTextEncoding()).toAsciiLowerCase());
-if ( aServiceName.getLength() )
+if ( !aServiceName.isEmpty() )
aSearch.pName = aServiceName.getStr();
else
aSearch.pName = "window";
@@ -1353,7 +1353,7 @@ css::uno::Reference< css::awt::XWindowPeer >
VCLXToolkit::ImplCreateWindow(
::com::sun::star::uno::Reference<
::com::sun::star::datatransfer::clipboard::XClipboard > SAL_CALL
VCLXToolkit::getClipboard( const ::rtl::OUString& clipboardName )
throw(::com::sun::star::uno::RuntimeException)
{
-if( clipboardName.getLength() == 0 )
+if( clipboardName.isEmpty() )
{
if( !mxClipboard.is() )
{
diff --git a/toolkit/source/awt/vclxwindow.cxx
b/toolkit/source/awt/vclxwindow.cxx
index 76eab5b..7f2af75 100644
--- a/toolkit/source/awt/vclxwindow.cxx
+++ b/toolkit/source/awt/vclxwindow.cxx
@@ -1545,7 +1545,7 @@ void VCLXWindow::setProperty( const ::rtl::OUString&
PropertyName, const ::com::
case WINDOW_CANCELBUTTON:
case WINDOW_HELPBUTTON:
// Standard Button: overwrite only if not empty.
-if (aText.getLength())
+if (!aText.isEmpty())
pWindow->SetText( aText );
break;
diff --git a/toolkit/source/awt/vclxwindows.cxx
b/toolkit/source/awt/vclxwindows.cxx
index 2669f0f..f85bc3c 100644
--- a/toolkit/source/awt/vclxwindows.cxx
+++ b/toolkit/source/awt/vclxwindows.cxx
@@ -2067,7 +2067,7 @@ namespace
{
Image lcl_getImageFromURL( const ::rtl::OUString& i_rImageURL )
{
- if ( !i_rImage