java/String: add const

This commit is contained in:
Max Kellermann 2021-03-28 13:32:48 +02:00 committed by Max Kellermann
parent 95d5efbfe6
commit ee86434a89

View File

@ -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);
}