diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-08-23 07:41:23 (GMT) |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-08-27 07:58:46 (GMT) |
commit | 190e3825d44d4f846d37e1ec7372f5829a5b6b3e (patch) | |
tree | 85605643bc6fcdcb455d5fe58469a08874ef8673 /Source/cmDependsJavaParserHelper.cxx | |
parent | 2ade9a0264b7c8d4e97d9d820e8c1531f3d1a43c (diff) | |
download | CMake-190e3825d44d4f846d37e1ec7372f5829a5b6b3e.zip CMake-190e3825d44d4f846d37e1ec7372f5829a5b6b3e.tar.gz CMake-190e3825d44d4f846d37e1ec7372f5829a5b6b3e.tar.bz2 |
Replace C-style casts
Diffstat (limited to 'Source/cmDependsJavaParserHelper.cxx')
-rw-r--r-- | Source/cmDependsJavaParserHelper.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmDependsJavaParserHelper.cxx b/Source/cmDependsJavaParserHelper.cxx index 179c44a..8073b8e 100644 --- a/Source/cmDependsJavaParserHelper.cxx +++ b/Source/cmDependsJavaParserHelper.cxx @@ -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; |