nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/knowledge/SearchPoint.java
 |    4 +---
 
nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/space/DesignSpace.java
     |    4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)

New commits:
commit 90b4217e20af48e08352bdd6b478e7a8c59ee035
Author: rbuj <robert....@gmail.com>
Date:   Thu Aug 7 14:06:11 2014 +0200

    nlpsolver: Use System.arraycopy
    
    Change-Id: I2550bf0799bd5ebc7f6ff299752fa90b7a31674d
    Reviewed-on: https://gerrit.libreoffice.org/10806
    Reviewed-by: David Tardon <dtar...@redhat.com>
    Tested-by: David Tardon <dtar...@redhat.com>

diff --git 
a/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/knowledge/SearchPoint.java
 
b/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/knowledge/SearchPoint.java
index 0085ff7..c33d649 100644
--- 
a/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/knowledge/SearchPoint.java
+++ 
b/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/knowledge/SearchPoint.java
@@ -42,9 +42,7 @@ public class SearchPoint extends BasicPoint implements 
IEncodeEngine {
   }
 
   private void importEncodeInfo(double[] info) {
-    for(int i=0; i<encodeInfo.length; i++) {
-      encodeInfo[i] = info[i];
-    }
+    System.arraycopy(info, 0, encodeInfo, 0, encodeInfo.length);
   }
 
   private void importEncodeInfo(IEncodeEngine point) {
diff --git 
a/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/space/DesignSpace.java
 
b/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/space/DesignSpace.java
index 48f4df4..35e2ac0 100644
--- 
a/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/space/DesignSpace.java
+++ 
b/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/space/DesignSpace.java
@@ -131,9 +131,7 @@ public class DesignSpace {
 
   public double[] getRealLoc(double[] imageLoc) {
     double[] realLoc = new double[imageLoc.length];
-    for (int i=0; i<imageLoc.length; i++) {
-      realLoc[i] = imageLoc[i];
-    }
+    System.arraycopy(imageLoc, 0, realLoc, 0, imageLoc.length);
     annulusAdjust(realLoc);
     return realLoc;
   }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to