From 288f4c294ac1be89b151a3f96eb9d5cb9d91055f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sun, 31 Jul 2022 20:03:54 +0200 Subject: Make WsoFromSz and WsoCopy static member functions of wstring_owner. --- c/common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'c/common.h') diff --git a/c/common.h b/c/common.h index 39fa9b8..6dfd782 100644 --- a/c/common.h +++ b/c/common.h @@ -13,6 +13,8 @@ struct wstring_owner { + static wstring_owner from_narrow(const char* buf, int cp = CP_UTF8); + static wstring_owner copy(const wchar_t* s); wstring_owner(); wstring_owner(wchar_t* s); wstring_owner& operator=(wchar_t* s); @@ -26,9 +28,7 @@ struct wstring_owner wchar_t* p = nullptr; }; -wstring_owner WsoFromSz(const char* buf, int cp = CP_UTF8); int EBMessageBox(const wchar_t* wszText, const wchar_t* wszCaption, unsigned uType); -wstring_owner WsoCopy(const wchar_t* s); struct Win32Error : public std::exception { -- cgit v1.2.3