git repos / PlatformFolders

commit 335988d2

sum01 · 2019-03-06 18:58
335988d25a9aa05a4fae68e355aa0a40792e307b patch · browse files
parent 0267c8388fda8eabaf252a45b008d154ee75bef7

Remove static from win32_utf16_to_utf8

Ref ed746269432e092160bd31415672f712492dffac which turned this function into a public function.

Changed files

M sago/platform_folders.cpp before
diff --git a/sago/platform_folders.cpp b/sago/platform_folders.cpp index 0917284..170d373 100644 --- a/sago/platform_folders.cpp +++ b/sago/platform_folders.cpp
@@ -91,7 +91,7 @@ static std::string getHome() {
namespace sago {
namespace internal {
-static std::string win32_utf16_to_utf8(const wchar_t* wstr) {
+std::string win32_utf16_to_utf8(const wchar_t* wstr) {
std::string res;
// If the 6th parameter is 0 then WideCharToMultiByte returns the number of bytes needed to store the result.
int actualSize = WideCharToMultiByte(CP_UTF8, 0, wstr, -1, nullptr, 0, nullptr, nullptr);