[Libreoffice-commits] core.git: xmerge/source
Robert Antoni Buj i Gelonch
robert.buj at gmail.com
Wed Oct 1 21:27:52 PDT 2014
xmerge/source/xmerge/java/org/openoffice/xmerge/util/OfficeUtil.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
New commits:
commit dbff5f5c6b66ed6c5c9b77245fd294800cd6c4b6
Author: Robert Antoni Buj i Gelonch <robert.buj at gmail.com>
Date: Wed Oct 1 20:18:25 2014 +0200
xmerge: Converting ArrayList to Array
Change-Id: I67c70ce05d35c8f40bea153499820e7e52c2ff08
Reviewed-on: https://gerrit.libreoffice.org/11748
Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
Tested-by: Noel Grandin <noelgrandin at gmail.com>
diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/util/OfficeUtil.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/util/OfficeUtil.java
index d2385bc..980e01e 100644
--- a/xmerge/source/xmerge/java/org/openoffice/xmerge/util/OfficeUtil.java
+++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/util/OfficeUtil.java
@@ -116,9 +116,7 @@ public class OfficeUtil implements OfficeConstants {
}
// Now create and populate an array to return the nodes in.
- Node nodes[] = new Node[nodeVec.size()];
- for (int i = 0; i < nodeVec.size(); i++)
- nodes[i] = nodeVec.get(i);
+ Node nodes[] = nodeVec.toArray(new Node[nodeVec.size()]);
return nodes;
}
}
\ No newline at end of file
More information about the Libreoffice-commits
mailing list