Kaydet (Commit) c6a2868a authored tarafından rbuj's avatar rbuj Kaydeden (comit) Noel Grandin

qadevOOo: use System.arraycopy

Change-Id: Ibbac337b481e138ff9bfaa9d350b52e368ba5f2b
Reviewed-on: https://gerrit.libreoffice.org/11355Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 0876cc15
...@@ -91,10 +91,7 @@ public class Parameters implements XPropertySet { ...@@ -91,10 +91,7 @@ public class Parameters implements XPropertySet {
parameters.put(name, value); parameters.put(name, value);
int size = props.length; int size = props.length;
Property[] addProps = new Property[size+1]; Property[] addProps = new Property[size+1];
for (int i=0; i<size; i++) System.arraycopy(props, 0, addProps, 0, size);
{
addProps[i] = props[i];
}
addProps[size] = new Property(name, size, new Type(value.getClass()), (short)0); addProps[size] = new Property(name, size, new Type(value.getClass()), (short)0);
props = addProps; props = addProps;
} }
......
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