mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-20 21:28:23 -05:00
clang-tidy: address google-readability-casting lints
At least those involving `static_cast`.
This commit is contained in:
@@ -44,7 +44,8 @@ cmGeneratedFileStream::cmGeneratedFileStream(std::string const& name,
|
||||
#endif
|
||||
if (encoding == codecvt::UTF8_WITH_BOM) {
|
||||
// Write the BOM encoding header into the file
|
||||
char magic[] = { char(0xEF), char(0xBB), char(0xBF) };
|
||||
char magic[] = { static_cast<char>(0xEF), static_cast<char>(0xBB),
|
||||
static_cast<char>(0xBF) };
|
||||
this->write(magic, 3);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user