Fix Service initialization (#2784)

This commit is contained in:
LoveSy 2023-10-05 02:41:45 +08:00 committed by GitHub
parent 1a6264ab7a
commit 5c85a20601
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ using namespace lsplant;
namespace lspd {
std::unique_ptr<lspd::Context> lspd::Context::instance_;
std::unique_ptr<Context> Context::instance_;
std::unique_ptr<ConfigBridge> ConfigBridge::instance_;
Context::PreloadedDex::PreloadedDex(int fd, std::size_t size) {

View File

@ -33,7 +33,7 @@
using namespace lsplant;
namespace lspd {
std::unique_ptr<Service> Service::instance_;
std::unique_ptr<Service> Service::instance_ = std::make_unique<Service>();
jboolean
Service::exec_transact_replace(jboolean *res, JNIEnv *env, [[maybe_unused]] jobject obj,