From ee86434a89cdbd713ace6229d9b20232509f6e4e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 28 Mar 2021 13:32:48 +0200 Subject: [PATCH] java/String: add `const` --- src/java/String.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/String.hxx b/src/java/String.hxx index 715cf647b..d3aea4f73 100644 --- a/src/java/String.hxx +++ b/src/java/String.hxx @@ -67,7 +67,7 @@ public: * nullptr on error */ char *CopyTo(JNIEnv *env, - char *buffer, size_t max_size) noexcept { + char *buffer, size_t max_size) const noexcept { return CopyTo(env, Get(), buffer, max_size); }