diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-03-09 17:44:52 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-03-09 20:32:40 +0100 |
commit | d2f57b6c1275e0e6ed7f214d471ddb84ecb1b4ad (patch) | |
tree | 1728c15960c67ec9cc322e83ed37e0dc8e1f51b6 /svx | |
parent | a2454a42ad2236f0f6b88be166bc7e6a8f90f036 (diff) |
fdo#43460: use isEmpty()
Change-Id: I47b35af71277fdda19767a553c960bf12164b92f
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/form/fmpage.cxx | 4 | ||||
-rw-r--r-- | svx/source/tbxctrls/tbunosearchcontrollers.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/form/fmpage.cxx b/svx/source/form/fmpage.cxx index bcf3147b90dd..3243c2314a68 100644 --- a/svx/source/form/fmpage.cxx +++ b/svx/source/form/fmpage.cxx @@ -180,7 +180,7 @@ sal_Bool FmFormPage::RequestHelp( Window* pWindow, SdrView* pView, if (::comphelper::hasProperty(FM_PROP_HELPTEXT, xSet)) aHelpText = ::comphelper::getString(xSet->getPropertyValue(FM_PROP_HELPTEXT)).getStr(); - if (!aHelpText.getLength() && ::comphelper::hasProperty(FM_PROP_TARGET_URL, xSet)) + if (aHelpText.isEmpty() && ::comphelper::hasProperty(FM_PROP_TARGET_URL, xSet)) { OUString aText = ::comphelper::getString(xSet->getPropertyValue(FM_PROP_TARGET_URL)); INetURLObject aUrl(aText); @@ -200,7 +200,7 @@ sal_Bool FmFormPage::RequestHelp( Window* pWindow, SdrView* pView, } } } - if ( aHelpText.getLength() != 0 ) + if ( !aHelpText.isEmpty() ) { // Hilfe anzeigen Rectangle aItemRect = pObj->GetCurrentBoundRect(); diff --git a/svx/source/tbxctrls/tbunosearchcontrollers.cxx b/svx/source/tbxctrls/tbunosearchcontrollers.cxx index c964fceea2c3..7a020ed10ffe 100644 --- a/svx/source/tbxctrls/tbunosearchcontrollers.cxx +++ b/svx/source/tbxctrls/tbunosearchcontrollers.cxx @@ -118,7 +118,7 @@ void FindTextFieldControl::SetTextToSelected_Impl() { } - if ( aString.getLength() != 0 ) + if ( !aString.isEmpty() ) { SetText( aString ); GetModifyHdl().Call(this); // FIXME why SetText doesn't trigger this? |