Kaydet (Commit) dbff5f5c authored tarafından Robert Antoni Buj i Gelonch's avatar Robert Antoni Buj i Gelonch Kaydeden (comit) Noel Grandin

xmerge: Converting ArrayList to Array

Change-Id: I67c70ce05d35c8f40bea153499820e7e52c2ff08
Reviewed-on: https://gerrit.libreoffice.org/11748Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 30e2cb02
...@@ -116,9 +116,7 @@ public class OfficeUtil implements OfficeConstants { ...@@ -116,9 +116,7 @@ public class OfficeUtil implements OfficeConstants {
} }
// Now create and populate an array to return the nodes in. // Now create and populate an array to return the nodes in.
Node nodes[] = new Node[nodeVec.size()]; Node nodes[] = nodeVec.toArray(new Node[nodeVec.size()]);
for (int i = 0; i < nodeVec.size(); i++)
nodes[i] = nodeVec.get(i);
return nodes; return nodes;
} }
} }
\ No newline at end of file
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