[Libreoffice-commits] core.git: forms/qa

Robert Antoni Buj i Gelonch robert.buj at gmail.com
Wed Oct 1 12:45:13 PDT 2014


 forms/qa/complex/forms/CheckOGroupBoxModel.java |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

New commits:
commit 4173bc5f7e1849a706c7cb9dcb34f7edfa9e7d1f
Author: Robert Antoni Buj i Gelonch <robert.buj at gmail.com>
Date:   Tue Sep 30 16:58:51 2014 +0200

    forms: enhanced for loop
    
    Change-Id: I0c83d6fce9440f5d8b23e5f1bfca71d8f61d056b
    Reviewed-on: https://gerrit.libreoffice.org/11719
    Reviewed-by: Michael Stahl <mstahl at redhat.com>
    Tested-by: Michael Stahl <mstahl at redhat.com>

diff --git a/forms/qa/complex/forms/CheckOGroupBoxModel.java b/forms/qa/complex/forms/CheckOGroupBoxModel.java
index b76cda3..03eb496 100644
--- a/forms/qa/complex/forms/CheckOGroupBoxModel.java
+++ b/forms/qa/complex/forms/CheckOGroupBoxModel.java
@@ -129,11 +129,8 @@ public class CheckOGroupBoxModel
         Property[] properties = m_xPropSet.getPropertySetInfo().getProperties();
         ArrayList<String> tNames = new ArrayList<String>();
 
-        for (int i = 0; i < properties.length; i++)
+        for (Property property : properties)
         {
-
-            Property property = properties[i];
-            String name = property.Name;
             boolean isWritable = ((property.Attributes
                     & PropertyAttribute.READONLY) == 0);
             boolean isNotNull = ((property.Attributes
@@ -143,9 +140,8 @@ public class CheckOGroupBoxModel
 
             if (isWritable && isNotNull && isBound)
             {
-                tNames.add(name);
+                tNames.add(property.Name);
             }
-
         } // endfor
 
         //get a array of bound properties


More information about the Libreoffice-commits mailing list