From b165649285e3af9fb0b9418258f8d94bf1c6d162 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Mon, 7 Feb 2022 20:24:33 +0000 Subject: [PATCH] Fix MSVC warning C26477 Relating to C++ Core Guidelines es.47. --- src/api/helpers/text.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/api/helpers/text.cpp b/src/api/helpers/text.cpp index c00aedc4..b988e421 100644 --- a/src/api/helpers/text.cpp +++ b/src/api/helpers/text.cpp @@ -167,10 +167,10 @@ std::string FromWinWide(const std::wstring& wstr) { 0, wstr.c_str(), narrow(wstr.length()), - NULL, + nullptr, 0, - NULL, - NULL); + nullptr, + nullptr); if (len == 0) { return std::string(); @@ -183,8 +183,8 @@ std::string FromWinWide(const std::wstring& wstr) { narrow(wstr.length()), str.data(), narrow(str.length()), - NULL, - NULL); + nullptr, + nullptr); return str; } #endif