]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
java: build without "using namespace std"
authorKefu Chai <kchai@redhat.com>
Thu, 12 Aug 2021 14:42:47 +0000 (22:42 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 13 Aug 2021 05:26:17 +0000 (13:26 +0800)
* add "using" declarations in .cc files.

so we don't rely on "using namespace std" in one or more included
headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/java/native/libcephfs_jni.cc

index 74ef8dcdd8635d1120c2459f74cf4ca4ab2282a3..cdb807e5a65724113a52f747342c9586d567183e 100644 (file)
@@ -96,6 +96,8 @@
 #define JAVA_LOCK_NB 4
 #define JAVA_LOCK_UN 8
 
+using namespace std;
+
 /* Map JAVA_O_* open flags to values in libc */
 static inline int fixup_open_flags(jint jflags)
 {