Kaydet (Commit) 1c70f59c authored tarafından Robert Antoni Buj i Gelonch's avatar Robert Antoni Buj i Gelonch Kaydeden (comit) Noel Grandin

forms: the assigned value is never used

Change-Id: I8eadc27ba8880630ec93c68145969f3e8ba6c189
Reviewed-on: https://gerrit.libreoffice.org/11712Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 62bd1d17
......@@ -127,8 +127,6 @@ public class CheckOGroupBoxModel
private String[] getBoundPropsToTest()
{
Property[] properties = m_xPropSet.getPropertySetInfo().getProperties();
String[] testPropsNames = null;
ArrayList<String> tNames = new ArrayList<String>();
for (int i = 0; i < properties.length; i++)
......@@ -151,8 +149,7 @@ public class CheckOGroupBoxModel
} // endfor
//get a array of bound properties
testPropsNames = new String[tNames.size()];
testPropsNames = tNames.toArray(testPropsNames);
String[] testPropsNames = tNames.toArray(new String[tNames.size()]);
return testPropsNames;
}
......
......@@ -102,7 +102,7 @@ public class FormLayer
// insert the model into the form component hierarchy, if the caller gave us a location
if ( null != _parentForm )
{
XIndexContainer parentForm = null;
XIndexContainer parentForm;
if ( _parentForm instanceof XIndexContainer )
parentForm = (XIndexContainer)_parentForm;
else
......
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