Description: NodeDeivceInfoKey ->NodeDeviceInfoKey. Feature or Bugfix:Feature Binary Source: No

Signed-off-by: libaoping <libaoping1@h-partners.com>
This commit is contained in:
libaoping 2022-02-10 13:20:15 +08:00
parent 2b61f30d1a
commit c5efb64373
2 changed files with 4 additions and 4 deletions

View File

@ -59,7 +59,7 @@ public:
private:
DISALLOW_COPY_AND_MOVE(DnetworkAdapter);
std::string GetUuidOrUdidByNetworkId(const std::string& networkId, NodeDeivceInfoKey keyType);
std::string GetUuidOrUdidByNetworkId(const std::string& networkId, NodeDeviceInfoKey keyType);
static void OnNodeOnline(NodeBasicInfo* info);
static void OnNodeOffline(NodeBasicInfo* info);
static void OnNodeBasicInfoChanged(NodeBasicInfoType type, NodeBasicInfo* info);

View File

@ -176,15 +176,15 @@ std::shared_ptr<NodeBasicInfo> DnetworkAdapter::GetLocalBasicInfo()
std::string DnetworkAdapter::GetUdidByNetworkId(const std::string& networkId)
{
return GetUuidOrUdidByNetworkId(networkId, NodeDeivceInfoKey::NODE_KEY_UDID);
return GetUuidOrUdidByNetworkId(networkId, NodeDeviceInfoKey::NODE_KEY_UDID);
}
std::string DnetworkAdapter::GetUuidByNetworkId(const std::string& networkId)
{
return GetUuidOrUdidByNetworkId(networkId, NodeDeivceInfoKey::NODE_KEY_UUID);
return GetUuidOrUdidByNetworkId(networkId, NodeDeviceInfoKey::NODE_KEY_UUID);
}
std::string DnetworkAdapter::GetUuidOrUdidByNetworkId(const std::string& networkId, NodeDeivceInfoKey keyType)
std::string DnetworkAdapter::GetUuidOrUdidByNetworkId(const std::string& networkId, NodeDeviceInfoKey keyType)
{
if (networkId.empty()) {
return std::string();