summaryrefslogtreecommitdiff
path: root/testtools
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2019-05-02 13:39:20 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-05-02 13:37:13 +0200
commitdeffca13fd8a765ddc518cfcff464cb1b6f5c65a (patch)
treee1a34de7398b803bca75fc9dcd69985cc8b9fc18 /testtools
parente2abbc0062398ea67cb13cb5b0b7bfdce78e652c (diff)
Use hasElements to check Sequence emptiness in [t-u]*
Similar to clang-tidy readability-container-size-empty Change-Id: Idefe55e37f5c837c889548ffe7c5711400012a4d Reviewed-on: https://gerrit.libreoffice.org/71667 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'testtools')
-rw-r--r--testtools/source/bridgetest/bridgetest.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/testtools/source/bridgetest/bridgetest.cxx b/testtools/source/bridgetest/bridgetest.cxx
index 764236c7d119..ae59820d1be1 100644
--- a/testtools/source/bridgetest/bridgetest.cxx
+++ b/testtools/source/bridgetest/bridgetest.cxx
@@ -576,7 +576,7 @@ static bool performTest(
!nullAny.hasValue() || (ifc && !ifc->is()),
"getNullPolyAny");
bRet &= check(
- xLBT->getNullPolySequence().member.getLength() == 0,
+ !xLBT->getNullPolySequence().member.hasElements(),
"getNullPolySequence");
bRet &= check(
xLBT->getNullPolyEnum().member == TestEnum_TEST,
@@ -1105,7 +1105,7 @@ sal_Int32 TestBridgeImpl::run( const Sequence< OUString > & rArgs )
bool bRet = false;
try
{
- if (! rArgs.getLength())
+ if (! rArgs.hasElements())
{
throw RuntimeException( "no test object specified!\n"
"usage : ServiceName of test object | -u unourl of test object" );