Commit 3449c14f authored by Max Kellermann's avatar Max Kellermann

java/Object: rename class Object to GlobalObject

parent 36a89e8f
...@@ -24,9 +24,9 @@ ...@@ -24,9 +24,9 @@
class AllocatedPath; class AllocatedPath;
class Context : public Java::Object { class Context : public Java::GlobalObject {
public: public:
Context(JNIEnv *env, jobject obj):Java::Object(env, obj) {} Context(JNIEnv *env, jobject obj):Java::GlobalObject(env, obj) {}
gcc_pure gcc_pure
AllocatedPath GetCacheDir(JNIEnv *env) const; AllocatedPath GetCacheDir(JNIEnv *env) const;
......
...@@ -22,9 +22,9 @@ ...@@ -22,9 +22,9 @@
#include "java/Object.hxx" #include "java/Object.hxx"
class LogListener : public Java::Object { class LogListener : public Java::GlobalObject {
public: 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; void OnLog(JNIEnv *env, int priority, const char *fmt, ...) const;
}; };
......
...@@ -40,15 +40,15 @@ namespace Java { ...@@ -40,15 +40,15 @@ namespace Java {
*/ */
typedef LocalRef<jobject> LocalObject; typedef LocalRef<jobject> LocalObject;
class Object : public GlobalRef<jobject> { class GlobalObject : public GlobalRef<jobject> {
public: public:
/** /**
* Constructs an uninitialized object. The method * Constructs an uninitialized object. The method
* set() must be called before it is destructed. * 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) {} :GlobalRef<jobject>(env, obj) {}
}; };
} }
......
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