diff options
author | himajin100000 <himajin100000@gmail.com> | 2020-05-26 05:22:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-26 10:42:06 +0200 |
commit | 8223ab05e0fba320dd9dba2642b8d968d5b246b7 (patch) | |
tree | ae3c0ea6f91e1172c95f91ff35b6f0fa5033226c /cui | |
parent | de623b59a981e3d6a43b410a9216ec0acadc9ed1 (diff) |
cfg.cxx build fix
Change-Id: I7bab3dc64f0976b3d3e8711a05ea826243a6be67
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94687
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/customize/cfg.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
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); } } |