Commit 16d187b7 authored by Max Kellermann's avatar Max Kellermann Committed by Max Kellermann

java/Ref: remove `const`, add default initialiser

parent 296ec4d0
......@@ -43,10 +43,12 @@ namespace Java {
*/
template<typename T>
class LocalRef {
JNIEnv *const env;
const T value;
JNIEnv *env;
T value = nullptr;
public:
LocalRef() noexcept = default;
/**
* The local reference is obtained by the caller. May
* be nullptr.
......
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