diff options
author | Noel Grandin <noel@peralex.com> | 2015-06-09 10:59:59 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-06-09 13:10:44 +0200 |
commit | 26b4f5be815bc7c77deb3d38d23b51c9dea9fcd1 (patch) | |
tree | 2ff7d4d857d2d1f55fd5d15dfbb0dfae088281bc /bean | |
parent | 9a541611895b22ce1833b5151f4f1d420b1c657d (diff) |
java:use System.arrayCopy to copy arrays
instead of a for loop
Change-Id: I3fbd92c5f96970543c2da3843e54a733bf811e72
Diffstat (limited to 'bean')
-rw-r--r-- | bean/com/sun/star/comp/beans/OOoBean.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bean/com/sun/star/comp/beans/OOoBean.java b/bean/com/sun/star/comp/beans/OOoBean.java index 36d622dc3b7b..dd2a93bf0518 100644 --- a/bean/com/sun/star/comp/beans/OOoBean.java +++ b/bean/com/sun/star/comp/beans/OOoBean.java @@ -1350,8 +1350,7 @@ xLayoutManager.showElement("private:resource/menubar/menubar"); new com.sun.star.beans.PropertyValue[ nNumArgs + 1 ]; // copy current arguments - for ( int n = 0; n < nNumArgs; ++n ) - aExtendedArguments[n] = aArguments[n]; + System.arraycopy(aArguments, 0, aExtendedArguments, 0, nNumArgs); // add new argument aExtendedArguments[ nNumArgs ] = aArgument; |