diff options
Diffstat (limited to 'vcl/source/uitest/logger.cxx')
-rw-r--r-- | vcl/source/uitest/logger.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/vcl/source/uitest/logger.cxx b/vcl/source/uitest/logger.cxx index f60cb2322367..d100d1bbf125 100644 --- a/vcl/source/uitest/logger.cxx +++ b/vcl/source/uitest/logger.cxx @@ -43,15 +43,12 @@ void UITestLogger::logCommand(const OUString& rAction, const css::uno::Sequence< return; OUStringBuffer aBuffer(rAction); - sal_Int32 nCount = rArgs.getLength(); - if (nCount > 0) + if (rArgs.hasElements()) { aBuffer.append(" {"); - for (sal_Int32 n = 0; n < nCount; n++) + for (const css::beans::PropertyValue& rProp : rArgs) { - const css::beans::PropertyValue& rProp = rArgs[n]; - OUString aTypeName = rProp.Value.getValueTypeName(); if (aTypeName == "long" || aTypeName == "short") |