Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #9228 from JosJuice/android-jclass
Android: Fix jobject/jclass warnings
  • Loading branch information
lioncash committed Nov 9, 2020
2 parents 766fab2 + e4793cf commit 418f9fa
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 110 deletions.
2 changes: 0 additions & 2 deletions Source/Android/jni/AndroidCommon/IDCache.h
Expand Up @@ -8,8 +8,6 @@

namespace IDCache
{
static constexpr jint JNI_VERSION = JNI_VERSION_1_6;

JNIEnv* GetEnvForThread();

jclass GetNativeLibraryClass();
Expand Down
3 changes: 1 addition & 2 deletions Source/Android/jni/GameList/GameFile.cpp
Expand Up @@ -187,8 +187,7 @@ JNIEXPORT jint JNICALL Java_org_dolphinemu_dolphinemu_model_GameFile_getBannerHe
return static_cast<jint>(GetRef(env, obj)->GetBannerImage().height);
}

JNIEXPORT jobject JNICALL Java_org_dolphinemu_dolphinemu_model_GameFile_parse(JNIEnv* env,
jobject obj,
JNIEXPORT jobject JNICALL Java_org_dolphinemu_dolphinemu_model_GameFile_parse(JNIEnv* env, jclass,
jstring path)
{
auto game_file = std::make_shared<UICommon::GameFile>(GetJString(env, path));
Expand Down
2 changes: 1 addition & 1 deletion Source/Android/jni/GameList/GameFileCache.cpp
Expand Up @@ -28,7 +28,7 @@ extern "C" {
#endif

JNIEXPORT jlong JNICALL Java_org_dolphinemu_dolphinemu_model_GameFileCache_newGameFileCache(
JNIEnv* env, jobject obj, jstring path)
JNIEnv* env, jclass, jstring path)
{
return reinterpret_cast<jlong>(new UICommon::GameFileCache(GetJString(env, path)));
}
Expand Down
4 changes: 2 additions & 2 deletions Source/Android/jni/IniFile.cpp
Expand Up @@ -232,13 +232,13 @@ JNIEXPORT void JNICALL Java_org_dolphinemu_dolphinemu_utils_IniFile_finalize(JNI
}

JNIEXPORT jlong JNICALL Java_org_dolphinemu_dolphinemu_utils_IniFile_newIniFile(JNIEnv* env,
jobject obj)
jobject)
{
return reinterpret_cast<jlong>(new IniFile);
}

JNIEXPORT jlong JNICALL Java_org_dolphinemu_dolphinemu_utils_IniFile_copyIniFile(JNIEnv* env,
jobject obj,
jobject,
jobject other)
{
return reinterpret_cast<jlong>(new IniFile(*GetIniFilePointer(env, other)));
Expand Down

0 comments on commit 418f9fa

Please sign in to comment.