summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorRobert Antoni Buj i Gelonch <robert.buj@gmail.com>2014-09-30 16:58:51 +0200
committerMichael Stahl <mstahl@redhat.com>2014-10-01 19:44:53 +0000
commit4173bc5f7e1849a706c7cb9dcb34f7edfa9e7d1f (patch)
treeb454d513244f9218d2c9240c0110b290006d80e1 /forms
parent6d96902a3e25ebadc85666ddaf7c96e070ac99f5 (diff)
forms: enhanced for loop
Change-Id: I0c83d6fce9440f5d8b23e5f1bfca71d8f61d056b Reviewed-on: https://gerrit.libreoffice.org/11719 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'forms')
-rw-r--r--forms/qa/complex/forms/CheckOGroupBoxModel.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/forms/qa/complex/forms/CheckOGroupBoxModel.java b/forms/qa/complex/forms/CheckOGroupBoxModel.java
index b76cda3d02d8..03eb496d8914 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