Fix Ref moved (#1869)

This commit is contained in:
双草酸酯 2022-04-18 17:16:29 +08:00 committed by GitHub
parent faf99616b4
commit 48363a7e80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ namespace lspd {
// Call application_binder directly if application binder is available,
// or we proxy the request from system server binder
const auto next_binder = std::move(application_binder ? application_binder : system_server_binder);
auto &&next_binder = application_binder ? application_binder : system_server_binder;
const auto [dex_fd, size] = instance->RequestLSPDex(env, next_binder);
auto obfs_map = instance->RequestObfuscationMap(env, next_binder);
ConfigBridge::GetInstance()->obfuscation_map(std::move(obfs_map));

View File

@ -310,7 +310,7 @@ namespace lspd {
if (app_binder) {
JNI_NewGlobalRef(env, heart_beat_binder);
}
LOGD("Service::RequestSystemServerBinder app_binder: {}", static_cast<void*>(app_binder.get()));
LOGD("app_binder: {}", static_cast<void*>(app_binder.get()));
return app_binder;
}