mirror of
https://gitee.com/openharmony/deviceprofile_device_info_manager
synced 2024-11-26 17:21:03 +00:00
DP代码优化
Signed-off-by: torrizo <lishenhao2@huawei.com>
This commit is contained in:
parent
6206d8ffac
commit
1bced6ad34
@ -424,7 +424,11 @@ bool DpRadarHelper::ReportSyncDataCb(struct RadarInfo info)
|
||||
|
||||
std::string DpRadarHelper::GetHostNameByServiceId(std::string serviceId)
|
||||
{
|
||||
return hostNameMap_[serviceId];
|
||||
if (hostNameMap_.find(serviceId) != hostNameMap_.end())
|
||||
{
|
||||
return hostNameMap_[serviceId];
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
std::string DpRadarHelper::GetStringUdidList(std::list<std::string> &udidList)
|
||||
|
Loading…
Reference in New Issue
Block a user