diff options
author | Matthias Maennich <matthias@maennich.net> | 2017-09-19 13:57:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-09-28 11:23:41 (GMT) |
commit | b128f8c5bc02f716c700d4560b949b05afdcb659 (patch) | |
tree | 5c1bad7f18ccaeccf5c7daad2056c888df9cbcd1 /Source/CPack | |
parent | bb0ad1bea81f60cbbb2c66c2c0ab24ee12db0026 (diff) | |
download | CMake-b128f8c5bc02f716c700d4560b949b05afdcb659.zip CMake-b128f8c5bc02f716c700d4560b949b05afdcb659.tar.gz CMake-b128f8c5bc02f716c700d4560b949b05afdcb659.tar.bz2 |
Clean up some C-Style casts
Fix issues diagnosed by clang-tidy [google-readability-casting]
Signed-off-by: Matthias Maennich <matthias@maennich.net>
Diffstat (limited to 'Source/CPack')
-rw-r--r-- | Source/CPack/cmCPackDragNDropGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackDragNDropGenerator.cxx b/Source/CPack/cmCPackDragNDropGenerator.cxx index 4fbd194..e5329ad 100644 --- a/Source/CPack/cmCPackDragNDropGenerator.cxx +++ b/Source/CPack/cmCPackDragNDropGenerator.cxx @@ -561,7 +561,7 @@ int cmCPackDragNDropGenerator::CreateDMG(const std::string& src_dir, cmCPackLogger(cmCPackLog::LOG_ERROR, languages[i] << " is not a recognized language" << std::endl); } - char* iso_language_cstr = (char*)malloc(65); + char* iso_language_cstr = static_cast<char*>(malloc(65)); CFStringGetCString(iso_language, iso_language_cstr, 64, kCFStringEncodingMacRoman); LangCode lang = 0; |