Commit 285ba54f authored by Max Kellermann's avatar Max Kellermann Committed by Max Kellermann

java/String: remove unnecessary `env` parameter

parent ee86434a
...@@ -66,9 +66,8 @@ public: ...@@ -66,9 +66,8 @@ public:
* @return a pointer to the terminating null byte, * @return a pointer to the terminating null byte,
* nullptr on error * nullptr on error
*/ */
char *CopyTo(JNIEnv *env, char *CopyTo(char *buffer, size_t max_size) const noexcept {
char *buffer, size_t max_size) const noexcept { return CopyTo(GetEnv(), Get(), buffer, max_size);
return CopyTo(env, Get(), buffer, max_size);
} }
static std::string ToString(JNIEnv *env, jstring s) noexcept; static std::string ToString(JNIEnv *env, jstring s) noexcept;
......
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