diff options
author | rbuj <robert.buj@gmail.com> | 2014-09-09 15:42:53 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-09-10 08:15:11 +0000 |
commit | c6a2868a75a90005f9d711d6f1419ba704670781 (patch) | |
tree | 9c04104592213f9c9bb62e56670b99b7e8e1c396 /qadevOOo | |
parent | 0876cc15fc188db801a2198d9ca90a5a8b88f92f (diff) |
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.java | 5 |
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; } |