java/Ref: remove const
, add default initialiser
This commit is contained in:
parent
296ec4d07c
commit
16d187b7ed
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user