summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2013-06-22 12:53:04 +0200
committerMichael Stahl <mstahl@redhat.com>2013-06-24 21:45:42 +0000
commit126827b0fdc2277d728d57d4fe68b446fa2f7a08 (patch)
tree47ecea0bb21a5d7619ef6c8870ab276586804194 /framework
parent51daa4de4fbb86903aeb9cdfefbb089e8d00c001 (diff)
fdo#43460 framework,i18npool,accessibility: use isEmpty()
Change-Id: I4cd9841127b1d4a294d7f001b646259c61eb1172 Reviewed-on: https://gerrit.libreoffice.org/4443 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'framework')
-rw-r--r--framework/source/fwe/helper/titlehelper.cxx2
-rw-r--r--framework/source/recording/dispatchrecorder.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/framework/source/fwe/helper/titlehelper.cxx b/framework/source/fwe/helper/titlehelper.cxx
index 07bf13d60cc6..dd301e6ad653 100644
--- a/framework/source/fwe/helper/titlehelper.cxx
+++ b/framework/source/fwe/helper/titlehelper.cxx
@@ -521,7 +521,7 @@ void TitleHelper::impl_appendProductName (OUStringBuffer& sTitle)
OUString name(utl::ConfigManager::getProductName());
if (!name.isEmpty())
{
- if (sTitle.getLength() != 0)
+ if (!sTitle.isEmpty())
sTitle.appendAscii(RTL_CONSTASCII_STRINGPARAM(" - "));
sTitle.append(name);
}
diff --git a/framework/source/recording/dispatchrecorder.cxx b/framework/source/recording/dispatchrecorder.cxx
index 708b4cdd2dbf..a50407799871 100644
--- a/framework/source/recording/dispatchrecorder.cxx
+++ b/framework/source/recording/dispatchrecorder.cxx
@@ -356,7 +356,7 @@ void SAL_CALL DispatchRecorder::implts_recordMacro( const OUString& aURL,
{
sValBuffer.setLength(0);
}
- if (!sValBuffer.getLength())
+ if (sValBuffer.isEmpty())
continue;
{