diff options
author | John Ankarström <john@ankarstrom.se> | 2022-07-31 20:03:54 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-07-31 20:03:54 +0200 |
commit | 288f4c294ac1be89b151a3f96eb9d5cb9d91055f (patch) | |
tree | e2b96491c1bf9e7b3a29af517b4639d9bd27fb69 /c/common.h | |
parent | d9e1caa37e53c7dbc42b1fc652efc23a40c47c42 (diff) | |
download | EpisodeBrowser-288f4c294ac1be89b151a3f96eb9d5cb9d91055f.tar.gz |
Make WsoFromSz and WsoCopy static member functions of wstring_owner.
Diffstat (limited to 'c/common.h')
-rw-r--r-- | c/common.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |