Skip to content

Commit

Permalink
Refs #20160: Windows warning.
Browse files Browse the repository at this point in the history
Signed-off-by: adriancampo <[email protected]>
  • Loading branch information
adriancampo authored and JLBuenoLopez committed Apr 5, 2024
1 parent 38c3df5 commit b45c43e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -810,18 +810,18 @@ std::string TypeLookupManager::get_instance_name(
ss << std::hex;
for (const auto& elem : guid.guidPrefix.value)
{
ss << std::setw(2) << std::setfill('0') << static_cast<unsigned int>(static_cast<unsigned char>(elem));
ss << std::setw(2) << std::setfill('0') << static_cast<unsigned int>(elem);
}
for (const auto& elem : guid.entityId.value)
{
ss << std::setw(2) << std::setfill('0') << static_cast<unsigned int>(static_cast<unsigned char>(elem));
ss << std::setw(2) << std::setfill('0') << static_cast<unsigned int>(elem);
}

std::string str = ss.str();
std::transform(str.begin(), str.end(), str.begin(),
[](unsigned char c)
{
return std::tolower(c);
return static_cast<char>(std::tolower(c));
});
return "dds.builtin.TOS." + str;
}
Expand Down

0 comments on commit b45c43e

Please sign in to comment.