cui/source/customize/cfg.cxx |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

New commits:
commit 8223ab05e0fba320dd9dba2642b8d968d5b246b7
Author:     himajin100000 <[email protected]>
AuthorDate: Tue May 26 05:22:15 2020 +0200
Commit:     Noel Grandin <[email protected]>
CommitDate: Tue May 26 10:42:06 2020 +0200

    cfg.cxx build fix
    
    Change-Id: I7bab3dc64f0976b3d3e8711a05ea826243a6be67
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94687
    Tested-by: Noel Grandin <[email protected]>
    Reviewed-by: Noel Grandin <[email protected]>

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);
     }
 }
 
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to