diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2019-05-04 23:42:17 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-11 20:24:40 +0200 |
commit | c88f76035cd1d088cc06067270677618340fd839 (patch) | |
tree | 2e98a3c2c6bdb6ee909d0b7c45012060e57b9a29 /canvas/source/tools | |
parent | b5d624c4af1085d4670149e9c1d280da7bc9add0 (diff) |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'canvas/source/tools')
-rw-r--r-- | canvas/source/tools/canvastools.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/canvas/source/tools/canvastools.cxx b/canvas/source/tools/canvastools.cxx index 543f9170266c..759a39a27b2e 100644 --- a/canvas/source/tools/canvastools.cxx +++ b/canvas/source/tools/canvastools.cxx @@ -229,7 +229,7 @@ namespace canvas } virtual uno::Sequence< rendering::ARGBColor > SAL_CALL convertToARGB( const uno::Sequence< double >& deviceColor ) override { - SAL_WARN_IF(deviceColor.getLength() == 0, "canvas", "empty deviceColor argument"); + SAL_WARN_IF(!deviceColor.hasElements(), "canvas", "empty deviceColor argument"); const double* pIn( deviceColor.getConstArray() ); const std::size_t nLen( deviceColor.getLength() ); ENSURE_ARG_OR_THROW2(nLen%4==0, |