fix clang tidy error

This commit is contained in:
Qianqian Fang 2022-02-28 18:12:54 -05:00
parent b54f058dcb
commit 09ab236cfe
2 changed files with 4 additions and 4 deletions

View File

@ -1609,11 +1609,11 @@ class binary_writer
};
string_t key = "_ArrayType_";
if (bjdtype.find(std::string(value.at(key))) == bjdtype.end())
if (bjdtype.find(static_cast<std::string>(value.at(key))) == bjdtype.end())
{
return 1;
}
CharType dtype = bjdtype[std::string(value.at(key))];
CharType dtype = bjdtype[static_cast<std::string>(value.at(key))];
key = "_ArraySize_";
std::size_t len = (value.at(key).empty() ? 0 : 1);

View File

@ -15501,11 +15501,11 @@ class binary_writer
};
string_t key = "_ArrayType_";
if (bjdtype.find(std::string(value.at(key))) == bjdtype.end())
if (bjdtype.find(static_cast<std::string>(value.at(key))) == bjdtype.end())
{
return 1;
}
CharType dtype = bjdtype[std::string(value.at(key))];
CharType dtype = bjdtype[static_cast<std::string>(value.at(key))];
key = "_ArraySize_";
std::size_t len = (value.at(key).empty() ? 0 : 1);