mirror of
https://gitee.com/openharmony/security_device_security_level
synced 2024-11-23 06:41:06 +00:00
commit
2d109189a7
@ -66,7 +66,9 @@ void DeviceSecurityLevelLoader::LoadCallback::OnLoadSystemAbilityFail(int32_t si
|
||||
|
||||
sptr<IRemoteObject> DeviceSecurityLevelLoader::LoadCallback::Promise()
|
||||
{
|
||||
return promise_.get_future().get();
|
||||
auto obj = promise_.get_future().get();
|
||||
promise_ = {};
|
||||
return obj;
|
||||
}
|
||||
} // namespace DeviceSecurityLevel
|
||||
} // namespace Security
|
||||
|
@ -152,7 +152,7 @@ void ForEachDeviceDump(const ProcessDumpFunction dumper, int32_t dumpHandle)
|
||||
UnlockMutex(GetDeviceListMutex());
|
||||
}
|
||||
|
||||
bool JudgeListDeviceType()
|
||||
bool JudgeListDeviceType(void)
|
||||
{
|
||||
bool result = true;
|
||||
ListNode *node = NULL;
|
||||
|
@ -41,7 +41,7 @@ bool IsSameDevice(const DeviceIdentify *first, const DeviceIdentify *second);
|
||||
|
||||
void ForEachDeviceDump(const ProcessDumpFunction dumper, int32_t dumpHandle);
|
||||
|
||||
bool JudgeListDeviceType();
|
||||
bool JudgeListDeviceType(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user