修改初始化

Signed-off-by: 邹友松 <zouyousong1@h-partners.com>
This commit is contained in:
邹友松
2023-09-04 16:03:47 +08:00
parent e9771fc9fc
commit 759cedfcd3
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ protected:
void NotifyEventInfo(const EventInfo &eventInfo);
std::shared_ptr<SessionManager> sessionsMgr_;
std::shared_ptr<SessionManager> sessionsMgr_ = nullptr;
};
} // namespace UpdateEngine
} // namespace OHOS
@@ -47,7 +47,7 @@ private:
napi_env env_ {};
napi_ref thisReference_ {};
std::map<uint32_t, std::shared_ptr<IUpdateSession>> sessions_;
std::map<uint32_t, std::shared_ptr<IUpdateSession>> sessions_ {};
#ifndef UPDATER_API_TEST
std::recursive_mutex sessionMutex_;
#endif
@@ -50,7 +50,7 @@ private:
AlarmType alarmType_;
std::string logTag_;
int32_t timeLooperInterval_ = AlarmLooper::DEFAULT_LOOPER_INTERVAL;
std::map<BusinessAlarmType, AlarmCallback> callbackMap_;
std::map<BusinessAlarmType, AlarmCallback> callbackMap_ {};
};
} // namespace UpdateEngine
} // namespace OHOS
@@ -41,7 +41,7 @@ private:
void BuildTimer();
private:
std::map<AlarmType, uint32_t> lastRegisterTimeIdMap_;
std::map<AlarmType, uint32_t> lastRegisterTimeIdMap_ {};
std::shared_ptr<OHOS::Utils::Timer> timer_ = nullptr;
std::mutex mutex_;
};
@@ -37,7 +37,7 @@ public:
std::string reserveUrl;
std::string path;
std::string veriftInfo;
std::map<std::string, std::string> header;
std::map<std::string, std::string> header {};
std::string requestBody;
int32_t retryTimes = 0;
int64_t packageSize = 0;
@@ -56,7 +56,7 @@ private:
private:
FirmwareInstallDataProcessor installStepDataProcessor_;
UpgradeOptions upgradeOptions_ {};
UpgradeOptions upgradeOptions_;
BusinessError &businessError_;
InstallType installType_;
OnExecuteFinishCallback onExecuteFinishCallback_;