summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorRobert Antoni Buj i Gelonch <robert.buj@gmail.com>2014-09-30 13:01:02 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-09-30 12:19:10 +0000
commit1c70f59c133256f3ee0411a3b625916ad62a8603 (patch)
treee8a93536c23e74e82313e02c45b3315b609dbc37 /forms
parent62bd1d1783e60df69e592acfafb94b5dbc2e8d78 (diff)
forms: the assigned value is never used
Change-Id: I8eadc27ba8880630ec93c68145969f3e8ba6c189 Reviewed-on: https://gerrit.libreoffice.org/11712 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'forms')
-rw-r--r--forms/qa/complex/forms/CheckOGroupBoxModel.java5
-rw-r--r--forms/qa/integration/forms/FormLayer.java2
2 files changed, 2 insertions, 5 deletions
diff --git a/forms/qa/complex/forms/CheckOGroupBoxModel.java b/forms/qa/complex/forms/CheckOGroupBoxModel.java
index 6f048a6aa160..b76cda3d02d8 100644
--- a/forms/qa/complex/forms/CheckOGroupBoxModel.java
+++ b/forms/qa/complex/forms/CheckOGroupBoxModel.java
@@ -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;
}
diff --git a/forms/qa/integration/forms/FormLayer.java b/forms/qa/integration/forms/FormLayer.java
index a86f6f1aeb6b..e7c33a0a61f2 100644
--- a/forms/qa/integration/forms/FormLayer.java
+++ b/forms/qa/integration/forms/FormLayer.java
@@ -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