mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 22:50:26 -06:00
Replace C-style casts
This commit is contained in:
@@ -96,9 +96,9 @@ void cmDependsJavaParserHelper::SafePrintMissing(const char* str, int line,
|
||||
for (cc = 0; cc < strlen(str); cc++) {
|
||||
unsigned char ch = str[cc];
|
||||
if (ch >= 32 && ch <= 126) {
|
||||
std::cout << (char)ch;
|
||||
std::cout << static_cast<char>(ch);
|
||||
} else {
|
||||
std::cout << "<" << (int)ch << ">";
|
||||
std::cout << "<" << static_cast<int>(ch) << ">";
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -166,7 +166,7 @@ void cmDependsJavaParserHelper::AllocateParserType(
|
||||
{
|
||||
pt->str = nullptr;
|
||||
if (len == 0) {
|
||||
len = (int)strlen(str);
|
||||
len = static_cast<int>(strlen(str));
|
||||
}
|
||||
if (len == 0) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user