aboutsummaryrefslogtreecommitdiff
path: root/c/common.h
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-31 20:03:54 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-31 20:03:54 +0200
commit288f4c294ac1be89b151a3f96eb9d5cb9d91055f (patch)
treee2b96491c1bf9e7b3a29af517b4639d9bd27fb69 /c/common.h
parentd9e1caa37e53c7dbc42b1fc652efc23a40c47c42 (diff)
downloadEpisodeBrowser-288f4c294ac1be89b151a3f96eb9d5cb9d91055f.tar.gz
Make WsoFromSz and WsoCopy static member functions of wstring_owner.
Diffstat (limited to 'c/common.h')
-rw-r--r--c/common.h4
1 files changed, 2 insertions, 2 deletions
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
{