!306 feat:improve

Merge pull request !306 from zhuofan/master
This commit is contained in:
openharmony_ci 2024-08-27 13:45:33 +00:00 committed by Gitee
commit 2d109189a7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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;

View File

@ -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
}