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