From 8223ab05e0fba320dd9dba2642b8d968d5b246b7 Mon Sep 17 00:00:00 2001 From: himajin100000 Date: Tue, 26 May 2020 05:22:15 +0200 Subject: cfg.cxx build fix Change-Id: I7bab3dc64f0976b3d3e8711a05ea826243a6be67 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94687 Tested-by: Noel Grandin Reviewed-by: Noel Grandin --- cui/source/customize/cfg.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'cui') diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx index dae7f6a547b5..d63f36d33be2 100644 --- a/cui/source/customize/cfg.cxx +++ b/cui/source/customize/cfg.cxx @@ -110,24 +110,24 @@ void printPropertySet( SAL_WARN("cui", "printPropertySet: " << aPropDetails.getLength() << " properties" ); - for ( sal_Int32 i = 0; i < aPropDetails.(); ++i ) + for ( beans::Property const & aPropDetail : std::as_const(aPropDetails) ) { OUString tmp; sal_Int32 ival; - uno::Any a = xPropSet->getPropertyValue( aPropDetails[i].Name ); + uno::Any a = xPropSet->getPropertyValue( aPropDetail.Name ); if ( a >>= tmp ) { - SAL_WARN("cui", prefix << ": Got property: " << aPropDetails[i].Name << tmp); + SAL_WARN("cui", prefix << ": Got property: " << aPropDetail.Name << tmp); } else if ( ( a >>= ival ) ) { - SAL_WARN("cui", prefix << ": Got property: " << aPropDetails[i].Name << " = " << ival); + SAL_WARN("cui", prefix << ": Got property: " << aPropDetail.Name << " = " << ival); } else { - SAL_WARN("cui", prefix << ": Got property: " << aPropDetails[i].Name << " of type " << a.getValueTypeName()); + SAL_WARN("cui", prefix << ": Got property: " << aPropDetail.Name << " of type " << a.getValueTypeName()); } } } @@ -136,13 +136,13 @@ void printProperties( const OUString& prefix, const uno::Sequence< beans::PropertyValue >& aProp ) { - for ( sal_Int32 i = 0; i < aProp.(); ++i ) + for (PropertyValue const & aPropVal : std::as_const(aProp)) { OUString tmp; - aProp[i].Value >>= tmp; + aPropVal.Value >>= tmp; - SAL_WARN("cui", prefix << ": Got property: " << aProp[i].Name << " = " << tmp); + SAL_WARN("cui", prefix << ": Got property: " << aPropVal.Name << " = " << tmp); } } -- cgit