Remove size parameter from copy* methods in C++ and add copy*(void* data).

Change-Id: I4905a4774748c9f0d0406f70ce3895ebd68e92ce
diff --git a/tests/cppallocation/compute.cpp b/tests/cppallocation/compute.cpp
index 8439ffb..5407e06 100644
--- a/tests/cppallocation/compute.cpp
+++ b/tests/cppallocation/compute.cpp
@@ -40,11 +40,11 @@
         buf[ct] = (uint32_t)ct;
     }
 
-    ain->copy1DRangeFrom(0, numElems, buf, numElems*sizeof(uint32_t));
+    ain->copy1DRangeFrom(0, numElems, buf);
 
     sc->forEach_multiply(ain, aout);
 
-    aout->copy1DRangeTo(0, numElems, buf, numElems*sizeof(uint32_t));
+    aout->copy1DRangeTo(0, numElems, buf);
 
     for (uint32_t ct=0; ct < numElems; ct++) {
         if (buf[ct] !=  ct * 2) {
diff --git a/tests/cppbasic/compute.cpp b/tests/cppbasic/compute.cpp
index 782410a..471b10a 100644
--- a/tests/cppbasic/compute.cpp
+++ b/tests/cppbasic/compute.cpp
@@ -39,7 +39,7 @@
     for (uint32_t ct=0; ct < t->getCount(); ct++) {
         buf[ct] = ct | (ct << 16);
     }
-    ain->copy1DRangeFrom(0, t->getCount(), buf, t->getCount()*4);
+    ain->copy1DRangeFrom(0, t->getCount(), buf);
 
     sc->forEach_root(ain, aout);
     printf("for each done\n");
diff --git a/tests/latency/latency.cpp b/tests/latency/latency.cpp
index b6a6c47..124fb20 100644
--- a/tests/latency/latency.cpp
+++ b/tests/latency/latency.cpp
@@ -64,8 +64,6 @@
         sc->forEach_root(ain, aout);
     }
 
-    uint32_t temp;
-
     rs->finish();
 
     gettimeofday(&stop, NULL);