mirror of
https://gitee.com/openharmony/ability_dmsfwk
synced 2024-11-27 00:20:44 +00:00
stoi整改
Signed-off-by: 师皓杰 <shihaojie10@huawei.com>
This commit is contained in:
parent
96330ed98a
commit
dd14b2cfba
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user