diff options
author | scivision <scivision@users.noreply.github.com> | 2023-02-14 19:06:08 (GMT) |
---|---|---|
committer | scivision <scivision@users.noreply.github.com> | 2023-02-14 19:34:03 (GMT) |
commit | 7b0a629693bb3771eed9d922b8138ccc6e5ae0c2 (patch) | |
tree | cec26df2a6554f9a7031646931dfb1ec6f70912b /Source/cmCurl.cxx | |
parent | 283432a1aaa72cd0dc5c0bd0e301bccfd52edd01 (diff) | |
download | CMake-7b0a629693bb3771eed9d922b8138ccc6e5ae0c2.zip CMake-7b0a629693bb3771eed9d922b8138ccc6e5ae0c2.tar.gz CMake-7b0a629693bb3771eed9d922b8138ccc6e5ae0c2.tar.bz2 |
Source: use C++11 nullptr
Diffstat (limited to 'Source/cmCurl.cxx')
-rw-r--r-- | Source/cmCurl.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmCurl.cxx b/Source/cmCurl.cxx index fd6aee1..24ba368 100644 --- a/Source/cmCurl.cxx +++ b/Source/cmCurl.cxx @@ -131,12 +131,12 @@ std::string cmCurlFixFileURL(std::string url) // Convert string from UTF-8 to ACP if this is a file:// URL. std::wstring wurl = cmsys::Encoding::ToWide(url); if (!wurl.empty()) { - int mblen = - WideCharToMultiByte(CP_ACP, 0, wurl.c_str(), -1, NULL, 0, NULL, NULL); + int mblen = WideCharToMultiByte(CP_ACP, 0, wurl.c_str(), -1, nullptr, 0, + nullptr, nullptr); if (mblen > 0) { std::vector<char> chars(mblen); mblen = WideCharToMultiByte(CP_ACP, 0, wurl.c_str(), -1, &chars[0], - mblen, NULL, NULL); + mblen, nullptr, nullptr); if (mblen > 0) { url = &chars[0]; } |