java/Object: rename class Object to GlobalObject

This commit is contained in:
Max Kellermann 2019-04-24 13:56:59 +02:00
parent 36a89e8fe7
commit 3449c14ff5
3 changed files with 7 additions and 7 deletions

View File

@ -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;

View File

@ -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;
};

View File

@ -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) {}
};
}