summaryrefslogtreecommitdiff
path: root/src/java
diff options
context:
space:
mode:
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-03-13 19:09:39 +0100
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-03-13 19:09:39 +0100
commit8659b7e0437520b7d616c7174f282f33e5fde5e8 (patch)
tree2466aad03ae54348368953096cbc92a4835776bd /src/java
parentbc77af7e1c3ca80342845efa4fb8bfaa2b2171a0 (diff)
downloadceph-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.cc6
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;