summaryrefslogtreecommitdiff
path: root/sfx2/source/notify
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2019-05-02 22:56:03 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-05-03 10:08:31 +0200
commitf20810f7829d9f3b7167df316e1303810b746366 (patch)
tree8a6eb44060c5b4134c24d794e2af3b02b557d885 /sfx2/source/notify
parentf1ba393af4f08f8502906c9221f8b6f1be2a7bad (diff)
Use hasElements to check Sequence emptiness in sfx2..svx
Similar to clang-tidy readability-container-size-empty Change-Id: Icabd773f3b924d465b33e8581175f1fcf70c282e Reviewed-on: https://gerrit.libreoffice.org/71704 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/notify')
-rw-r--r--sfx2/source/notify/eventsupplier.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/sfx2/source/notify/eventsupplier.cxx b/sfx2/source/notify/eventsupplier.cxx
index 840dff455584..0be25c894451 100644
--- a/sfx2/source/notify/eventsupplier.cxx
+++ b/sfx2/source/notify/eventsupplier.cxx
@@ -162,10 +162,7 @@ sal_Bool SAL_CALL SfxEvents_Impl::hasElements()
{
::osl::MutexGuard aGuard( maMutex );
- if ( maEventNames.getLength() )
- return true;
- else
- return false;
+ return maEventNames.hasElements();
}
void SfxEvents_Impl::Execute( uno::Any const & aEventData, const document::DocumentEvent& aTrigger, SfxObjectShell* pDoc )