mirror of
https://gitee.com/openharmony/ability_dmsfwk
synced 2024-11-23 06:20:07 +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::lock_guard<std::mutex> tokenLock(tokenMutex_);
|
||||||
std::string tokenStr = system::GetParameter(TOKEN_KEY, DEFAULT_TOKEN_VALUE);
|
std::string tokenStr = system::GetParameter(TOKEN_KEY, DEFAULT_TOKEN_VALUE);
|
||||||
if (!tokenStr.empty()) {
|
if (!tokenStr.empty()) {
|
||||||
token_.store(std::stoi(tokenStr));
|
token_.store(std::atoi(tokenStr.c_str()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
notifierDeathRecipient_ = sptr<IRemoteObject::DeathRecipient>(new NotifierDeathRecipient());
|
notifierDeathRecipient_ = sptr<IRemoteObject::DeathRecipient>(new NotifierDeathRecipient());
|
||||||
|
Loading…
Reference in New Issue
Block a user