java/Object: rename class Object to GlobalObject
This commit is contained in:
parent
36a89e8fe7
commit
3449c14ff5
|
@ -24,9 +24,9 @@
|
|||
|
||||
class AllocatedPath;
|
||||
|
||||
class Context : public Java::Object {
|
||||
class Context : public Java::GlobalObject {
|
||||
public:
|
||||
Context(JNIEnv *env, jobject obj):Java::Object(env, obj) {}
|
||||
Context(JNIEnv *env, jobject obj):Java::GlobalObject(env, obj) {}
|
||||
|
||||
gcc_pure
|
||||
AllocatedPath GetCacheDir(JNIEnv *env) const;
|
||||
|
|
|
@ -22,9 +22,9 @@
|
|||
|
||||
#include "java/Object.hxx"
|
||||
|
||||
class LogListener : public Java::Object {
|
||||
class LogListener : public Java::GlobalObject {
|
||||
public:
|
||||
LogListener(JNIEnv *env, jobject obj):Java::Object(env, obj) {}
|
||||
LogListener(JNIEnv *env, jobject obj):Java::GlobalObject(env, obj) {}
|
||||
|
||||
void OnLog(JNIEnv *env, int priority, const char *fmt, ...) const;
|
||||
};
|
||||
|
|
|
@ -40,15 +40,15 @@ namespace Java {
|
|||
*/
|
||||
typedef LocalRef<jobject> LocalObject;
|
||||
|
||||
class Object : public GlobalRef<jobject> {
|
||||
class GlobalObject : public GlobalRef<jobject> {
|
||||
public:
|
||||
/**
|
||||
* Constructs an uninitialized object. The method
|
||||
* set() must be called before it is destructed.
|
||||
*/
|
||||
Object() = default;
|
||||
GlobalObject() = default;
|
||||
|
||||
Object(JNIEnv *env, jobject obj) noexcept
|
||||
GlobalObject(JNIEnv *env, jobject obj) noexcept
|
||||
:GlobalRef<jobject>(env, obj) {}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue