aboutsummaryrefslogtreecommitdiff
path: root/c/common.cpp
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.cpp
parentd9e1caa37e53c7dbc42b1fc652efc23a40c47c42 (diff)
downloadEpisodeBrowser-288f4c294ac1be89b151a3f96eb9d5cb9d91055f.tar.gz
Make WsoFromSz and WsoCopy static member functions of wstring_owner.
Diffstat (limited to 'c/common.cpp')
-rw-r--r--c/common.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/common.cpp b/c/common.cpp
index 3ed2b73..2e16c59 100644
--- a/c/common.cpp
+++ b/c/common.cpp
@@ -43,7 +43,7 @@ wstring_owner::~wstring_owner()
delete p;
}
-wstring_owner WsoFromSz(const char* const src, const int cp)
+wstring_owner wstring_owner::from_narrow(const char* const src, const int cp)
{
int cbMultiByte = strlen(src)+1;
int cchWideChar = MultiByteToWideChar(cp, 0, src, cbMultiByte, NULL, 0);
@@ -55,7 +55,7 @@ wstring_owner WsoFromSz(const char* const src, const int cp)
return dst;
}
-wstring_owner WsoCopy(const wchar_t* const src)
+wstring_owner wstring_owner::copy(const wchar_t* const src)
{
const int cb = wcslen(src)+1;
wchar_t* dst = new wchar_t[cb];