diff options
author | Sven Göthel <[email protected]> | 2024-05-26 04:46:29 +0200 |
---|---|---|
committer | Sven Göthel <[email protected]> | 2024-05-26 04:46:29 +0200 |
commit | 322d95ed133f90d7c77fb66a5b942929f6a03c1d (patch) | |
tree | 1b981e01598bb08a25f806ad57a9b8dd35e0b265 /java/jni | |
parent | 6ecea580940de66b85e692931c33497160ff389a (diff) |
Adopt to jaulib: clangd/cland-tidy integration; Use VersionNumberv1.2.2
Diffstat (limited to 'java/jni')
-rw-r--r-- | java/jni/cipherpack/CPFactory.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/java/jni/cipherpack/CPFactory.cxx b/java/jni/cipherpack/CPFactory.cxx index dac2f92..f13ef3d 100644 --- a/java/jni/cipherpack/CPFactory.cxx +++ b/java/jni/cipherpack/CPFactory.cxx @@ -33,9 +33,7 @@ jstring Java_org_cipherpack_CPFactory_getNativeVersion(JNIEnv *env, jclass clazz { try { (void) clazz; - - std::string api_version = std::string(cipherpack::VERSION); - return env->NewStringUTF(api_version.c_str()); + return env->NewStringUTF(cipherpack::VERSION.versionString().c_str()); } catch(...) { rethrow_and_raise_java_exception(env); } |