diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2019-05-02 17:53:27 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-05-04 13:57:07 +0200 |
commit | 2ddc66e6981a7d819cd6196a7ccbc811ca213be2 (patch) | |
tree | ab991ee652a9121ac18213f84d0df7855a2f2e29 /sw/inc | |
parent | dec6bb217dd3ae98bee8e48fab9f8e26b7645b2b (diff) |
Use hasElements to check Sequence emptiness in sw
Similar to clang-tidy readability-container-size-empty
Change-Id: If44f20a7aa678915e32d12101e1af71476f4b590
Reviewed-on: https://gerrit.libreoffice.org/71679
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/PostItMgr.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/PostItMgr.hxx b/sw/inc/PostItMgr.hxx index d34ae3f34b72..19ba52b7aa18 100644 --- a/sw/inc/PostItMgr.hxx +++ b/sw/inc/PostItMgr.hxx @@ -101,7 +101,7 @@ class SwNoteProps: public utl::ConfigItem css::uno::Sequence< css::uno::Any > aValues = GetProperties(rNames); const css::uno::Any* pValues = aValues.getConstArray(); SAL_WARN_IF(aValues.getLength() != rNames.getLength(), "sw", "GetProperties failed"); - if (aValues.getLength()) + if (aValues.hasElements()) pValues[0]>>=m_bIsShowAnchor; } @@ -112,7 +112,7 @@ class SwNoteProps: public utl::ConfigItem static css::uno::Sequence< OUString >& GetPropertyNames() { static css::uno::Sequence< OUString > aNames; - if(!aNames.getLength()) + if(!aNames.hasElements()) { aNames.realloc(1); OUString* pNames = aNames.getArray(); |