stoi整改

Signed-off-by: 师皓杰 <shihaojie10@huawei.com>
This commit is contained in:
师皓杰 2024-09-24 09:04:17 +08:00
parent 96330ed98a
commit dd14b2cfba

View File

@ -63,7 +63,7 @@ void DistributedAbilityManagerService::OnStart()
std::lock_guard<std::mutex> tokenLock(tokenMutex_);
std::string tokenStr = system::GetParameter(TOKEN_KEY, DEFAULT_TOKEN_VALUE);
if (!tokenStr.empty()) {
token_.store(std::stoi(tokenStr));
token_.store(std::atoi(tokenStr.c_str()));
}
}
notifierDeathRecipient_ = sptr<IRemoteObject::DeathRecipient>(new NotifierDeathRecipient());