diff options
author | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-03-13 19:09:39 +0100 |
---|---|---|
committer | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-03-13 19:09:39 +0100 |
commit | 8659b7e0437520b7d616c7174f282f33e5fde5e8 (patch) | |
tree | 2466aad03ae54348368953096cbc92a4835776bd /src/java | |
parent | bc77af7e1c3ca80342845efa4fb8bfaa2b2171a0 (diff) | |
download | ceph-8659b7e0437520b7d616c7174f282f33e5fde5e8.tar.gz |
libcephfs_jni.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/native/libcephfs_jni.cc | 6 |
1 files 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; |