diff options
Diffstat (limited to 'base/android/jni_array.cc')
-rw-r--r-- | base/android/jni_array.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/base/android/jni_array.cc b/base/android/jni_array.cc index 4bebec7..a157354 100644 --- a/base/android/jni_array.cc +++ b/base/android/jni_array.cc @@ -7,7 +7,6 @@ #include "base/android/jni_android.h" #include "base/android/jni_string.h" #include "base/logging.h" -#include "base/stl_util.h" namespace base { namespace android { @@ -54,7 +53,7 @@ ScopedJavaLocalRef<jintArray> ToJavaIntArray( ScopedJavaLocalRef<jintArray> ToJavaIntArray( JNIEnv* env, const std::vector<int>& ints) { - return ToJavaIntArray(env, vector_as_array(&ints), ints.size()); + return ToJavaIntArray(env, ints.begin(), ints.size()); } ScopedJavaLocalRef<jlongArray> ToJavaLongArray( @@ -73,7 +72,7 @@ ScopedJavaLocalRef<jlongArray> ToJavaLongArray( // Returns a new Java long array converted from the given int64 array. BASE_EXPORT ScopedJavaLocalRef<jlongArray> ToJavaLongArray( JNIEnv* env, const std::vector<int64>& longs) { - return ToJavaLongArray(env, vector_as_array(&longs), longs.size()); + return ToJavaLongArray(env, longs.begin(), longs.size()); } ScopedJavaLocalRef<jobjectArray> ToJavaArrayOfByteArray( |