mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
Android: Some simple Clang-Tidy suggestions
This commit is contained in:
@ -188,7 +188,7 @@ JNIEXPORT jintArray JNICALL Java_org_dolphinemu_dolphinemu_model_GameFile_getBan
|
||||
jobject obj)
|
||||
{
|
||||
const std::vector<u32>& buffer = GetRef(env, obj)->GetBannerImage().buffer;
|
||||
const jsize size = static_cast<jsize>(buffer.size());
|
||||
const auto size = static_cast<jsize>(buffer.size());
|
||||
const jintArray out_array = env->NewIntArray(size);
|
||||
if (!out_array)
|
||||
return nullptr;
|
||||
|
@ -89,7 +89,7 @@ JNIEXPORT jboolean JNICALL Java_org_dolphinemu_dolphinemu_model_GameFileCache_up
|
||||
|
||||
for (jsize i = 0; i < size; ++i)
|
||||
{
|
||||
const jstring path = reinterpret_cast<jstring>(env->GetObjectArrayElement(folder_paths, i));
|
||||
const auto path = reinterpret_cast<jstring>(env->GetObjectArrayElement(folder_paths, i));
|
||||
folder_paths_vector.push_back(GetJString(env, path));
|
||||
env->DeleteLocalRef(path);
|
||||
}
|
||||
|
Reference in New Issue
Block a user