Kaydet (Commit) 4173bc5f authored tarafından Robert Antoni Buj i Gelonch's avatar Robert Antoni Buj i Gelonch Kaydeden (comit) Michael Stahl

forms: enhanced for loop

Change-Id: I0c83d6fce9440f5d8b23e5f1bfca71d8f61d056b
Reviewed-on: https://gerrit.libreoffice.org/11719Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
Tested-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst 6d96902a
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment