Commit 41b38086 authored by j4cbo's avatar j4cbo

Merge pull request #61 from marcomagdy/patch-1

Avoid unnecessary conversion and temporaries
parents 5eadf662 5d5a6379
...@@ -28,8 +28,8 @@ public: ...@@ -28,8 +28,8 @@ public:
return jniUTF8FromString(jniEnv, j); return jniUTF8FromString(jniEnv, j);
} }
static jstring toJava(JNIEnv* jniEnv, std::string c) { static jstring toJava(JNIEnv* jniEnv, const std::string & c) {
return jniStringFromUTF8(jniEnv, c.c_str()); return jniStringFromUTF8(jniEnv, c);
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment