summaryrefslogtreecommitdiffstats
path: root/qadevOOo
diff options
context:
space:
mode:
authorrbuj <robert.buj@gmail.com>2014-09-09 15:42:53 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-09-10 08:15:11 +0000
commitc6a2868a75a90005f9d711d6f1419ba704670781 (patch)
tree9c04104592213f9c9bb62e56670b99b7e8e1c396 /qadevOOo
parentscripting: fix array copy and, use System.arraycopy (diff)
downloadcore-c6a2868a75a90005f9d711d6f1419ba704670781.tar.gz
core-c6a2868a75a90005f9d711d6f1419ba704670781.zip
qadevOOo: use System.arraycopy
Change-Id: Ibbac337b481e138ff9bfaa9d350b52e368ba5f2b Reviewed-on: https://gerrit.libreoffice.org/11355 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'qadevOOo')
-rw-r--r--qadevOOo/runner/lib/Parameters.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/qadevOOo/runner/lib/Parameters.java b/qadevOOo/runner/lib/Parameters.java
index e66ea5027643..8c05d778ba9c 100644
--- a/qadevOOo/runner/lib/Parameters.java
+++ b/qadevOOo/runner/lib/Parameters.java
@@ -91,10 +91,7 @@ public class Parameters implements XPropertySet {
parameters.put(name, value);
int size = props.length;
Property[] addProps = new Property[size+1];
- for (int i=0; i<size; i++)
- {
- addProps[i] = props[i];
- }
+ System.arraycopy(props, 0, addProps, 0, size);
addProps[size] = new Property(name, size, new Type(value.getClass()), (short)0);
props = addProps;
}