summaryrefslogtreecommitdiff
path: root/cppuhelper/source/tdmgr.cxx
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2019-05-04 21:20:18 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-06-05 19:24:57 +0200
commit2ed3d691b42525f6c1cc430d5863febcb102816e (patch)
tree97088acb96f8ad26f2ae67f3f8e5c2f6aab05cf0 /cppuhelper/source/tdmgr.cxx
parent6c31c2b01dd32cc7ba1230f2c4a98b8f7def219b (diff)
Use hasElements to check Sequence emptiness in cppcanvas..desktop
Similar to clang-tidy readability-container-size-empty Change-Id: I81c0ff78d2ecc7d984e3ed5e5ce60efe327fc162 Reviewed-on: https://gerrit.libreoffice.org/71799 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cppuhelper/source/tdmgr.cxx')
-rw-r--r--cppuhelper/source/tdmgr.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/cppuhelper/source/tdmgr.cxx b/cppuhelper/source/tdmgr.cxx
index 288ac9bb6653..8666fadc6554 100644
--- a/cppuhelper/source/tdmgr.cxx
+++ b/cppuhelper/source/tdmgr.cxx
@@ -122,7 +122,7 @@ static typelib_TypeDescription * createCTD(
const Reference< XStructTypeDescription > & xType )
{
typelib_TypeDescription * pRet = nullptr;
- if (xType.is() && xType->getTypeParameters().getLength() == 0)
+ if (xType.is() && !xType->getTypeParameters().hasElements())
{
typelib_TypeDescription * pBaseType = createCTD(
access, xType->getBaseType() );
@@ -171,7 +171,7 @@ static typelib_TypeDescription * createCTD(
// string is held by rMemberNames
rInit.aBase.pMemberName = pMemberNames[nPos].pData;
- rInit.bParameterizedType = templateMemberTypes.getLength() != 0
+ rInit.bParameterizedType = templateMemberTypes.hasElements()
&& (templateMemberTypes[nPos]->getTypeClass()
== TypeClass_UNKNOWN);
}