From 8659b7e0437520b7d616c7174f282f33e5fde5e8 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Wed, 13 Mar 2013 19:09:39 +0100 Subject: [PATCH] libcephfs_jni.cc: prefer prefix ++operator for iterators Signed-off-by: Danny Al-Gaaf --- src/java/native/libcephfs_jni.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/java/native/libcephfs_jni.cc b/src/java/native/libcephfs_jni.cc index 429ef571f3b..2ce8cd3db19 100644 --- a/src/java/native/libcephfs_jni.cc +++ b/src/java/native/libcephfs_jni.cc @@ -814,7 +814,7 @@ JNIEXPORT jobjectArray JNICALL Java_com_ceph_fs_CephMount_native_1ceph_1listdir * * FIXME: how should a partially filled array be cleaned-up properly? */ - for (i = 0, it = contents.begin(); it != contents.end(); it++) { + for (i = 0, it = contents.begin(); it != contents.end(); ++it) { name = env->NewStringUTF(it->c_str()); if (!name) goto out; @@ -2033,7 +2033,7 @@ JNIEXPORT jobjectArray JNICALL Java_com_ceph_fs_CephMount_native_1ceph_1listxatt if (!xattrlist) goto out; - for (i = 0, it = contents.begin(); it != contents.end(); it++) { + for (i = 0, it = contents.begin(); it != contents.end(); ++it) { name = env->NewStringUTF(it->c_str()); if (!name) goto out; @@ -2129,7 +2129,7 @@ JNIEXPORT jobjectArray JNICALL Java_com_ceph_fs_CephMount_native_1ceph_1llistxat if (!xattrlist) goto out; - for (i = 0, it = contents.begin(); it != contents.end(); it++) { + for (i = 0, it = contents.begin(); it != contents.end(); ++it) { name = env->NewStringUTF(it->c_str()); if (!name) goto out; -- 2.47.3