Java/String: inherit the super class constructor
This commit is contained in:
parent
f58c14a74a
commit
2d95ac2e94
|
@ -45,6 +45,8 @@ class File : public LocalObject {
|
|||
static jmethodID getAbsolutePath_method;
|
||||
|
||||
public:
|
||||
using LocalObject::LocalObject;
|
||||
|
||||
gcc_nonnull_all
|
||||
static void Initialise(JNIEnv *env) noexcept;
|
||||
|
||||
|
|
|
@ -44,8 +44,7 @@ namespace Java {
|
|||
*/
|
||||
class String : public LocalRef<jstring> {
|
||||
public:
|
||||
String(JNIEnv *env, jstring value) noexcept
|
||||
:LocalRef<jstring>(env, value) {}
|
||||
using LocalRef::LocalRef;
|
||||
|
||||
String(JNIEnv *_env, const char *_value) noexcept
|
||||
:LocalRef<jstring>(_env, _env->NewStringUTF(_value)) {}
|
||||
|
|
Loading…
Reference in New Issue