From c88f76035cd1d088cc06067270677618340fd839 Mon Sep 17 00:00:00 2001 From: Arkadiy Illarionov Date: Sat, 4 May 2019 23:42:17 +0300 Subject: Use hasElements to check Sequence emptiness in accessibility..canvas Similar to clang-tidy readability-container-size-empty Change-Id: I24c3f04b4eed3c1cd973166885660f113a26844f Reviewed-on: https://gerrit.libreoffice.org/71805 Tested-by: Jenkins Reviewed-by: Noel Grandin --- canvas/source/simplecanvas/simplecanvasimpl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'canvas/source/simplecanvas') diff --git a/canvas/source/simplecanvas/simplecanvasimpl.cxx b/canvas/source/simplecanvas/simplecanvasimpl.cxx index fb82b701459a..9e209b5cf3e5 100644 --- a/canvas/source/simplecanvas/simplecanvasimpl.cxx +++ b/canvas/source/simplecanvas/simplecanvasimpl.cxx @@ -142,7 +142,7 @@ namespace uno::Reference xRet; // can't do much without an XCanvas, can't we? - if( rArgs.getLength() < 1 ) + if( !rArgs.hasElements() ) throw lang::IllegalArgumentException(); xRet.set( rArgs[0], uno::UNO_QUERY ); -- cgit