From 26b4f5be815bc7c77deb3d38d23b51c9dea9fcd1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 9 Jun 2015 10:59:59 +0200 Subject: java:use System.arrayCopy to copy arrays instead of a for loop Change-Id: I3fbd92c5f96970543c2da3843e54a733bf811e72 --- bean/com/sun/star/comp/beans/OOoBean.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bean') 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; -- cgit