Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
0d2ec5ea
Commit
0d2ec5ea
authored
Apr 24, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
java/Object: rename class Object to GlobalObject
parent
5b74ed6b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
Context.hxx
src/android/Context.hxx
+2
-2
LogListener.hxx
src/android/LogListener.hxx
+2
-2
Object.hxx
src/java/Object.hxx
+3
-3
No files found.
src/android/Context.hxx
View file @
0d2ec5ea
...
...
@@ -24,9 +24,9 @@
class
AllocatedPath
;
class
Context
:
public
Java
::
Object
{
class
Context
:
public
Java
::
Global
Object
{
public
:
Context
(
JNIEnv
*
env
,
jobject
obj
)
:
Java
::
Object
(
env
,
obj
)
{}
Context
(
JNIEnv
*
env
,
jobject
obj
)
:
Java
::
Global
Object
(
env
,
obj
)
{}
gcc_pure
AllocatedPath
GetCacheDir
(
JNIEnv
*
env
)
const
;
...
...
src/android/LogListener.hxx
View file @
0d2ec5ea
...
...
@@ -22,9 +22,9 @@
#include "java/Object.hxx"
class
LogListener
:
public
Java
::
Object
{
class
LogListener
:
public
Java
::
Global
Object
{
public
:
LogListener
(
JNIEnv
*
env
,
jobject
obj
)
:
Java
::
Object
(
env
,
obj
)
{}
LogListener
(
JNIEnv
*
env
,
jobject
obj
)
:
Java
::
Global
Object
(
env
,
obj
)
{}
void
OnLog
(
JNIEnv
*
env
,
int
priority
,
const
char
*
fmt
,
...)
const
;
};
...
...
src/java/Object.hxx
View file @
0d2ec5ea
...
...
@@ -40,15 +40,15 @@ namespace Java {
*/
typedef
LocalRef
<
jobject
>
LocalObject
;
class
Object
:
public
GlobalRef
<
jobject
>
{
class
Global
Object
:
public
GlobalRef
<
jobject
>
{
public
:
/**
* Constructs an uninitialized object. The method
* set() must be called before it is destructed.
*/
Object
()
=
default
;
Global
Object
()
=
default
;
Object
(
JNIEnv
*
env
,
jobject
obj
)
noexcept
Global
Object
(
JNIEnv
*
env
,
jobject
obj
)
noexcept
:
GlobalRef
<
jobject
>
(
env
,
obj
)
{}
};
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment