summaryrefslogtreecommitdiff
path: root/canvas/source/vcl/spritecanvas.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'canvas/source/vcl/spritecanvas.cxx')
-rw-r--r--canvas/source/vcl/spritecanvas.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/canvas/source/vcl/spritecanvas.cxx b/canvas/source/vcl/spritecanvas.cxx
index ee1de2808c66..429559fbe964 100644
--- a/canvas/source/vcl/spritecanvas.cxx
+++ b/canvas/source/vcl/spritecanvas.cxx
@@ -54,7 +54,7 @@ namespace vclcanvas
SolarMutexGuard aGuard;
// #i64742# Only call initialize when not in probe mode
- if( maArguments.getLength() == 0 )
+ if( !maArguments.hasElements() )
return;
SAL_INFO("canvas.vcl", "SpriteCanvas created" );
@@ -71,7 +71,7 @@ namespace vclcanvas
SAL_INFO("canvas.vcl", "VCLSpriteCanvas::initialize called" );
- ENSURE_ARG_OR_THROW( maArguments.getLength() >= 1,
+ ENSURE_ARG_OR_THROW( maArguments.hasElements(),
"VCLSpriteCanvas::initialize: wrong number of arguments" );
/* maArguments: