aboutsummaryrefslogtreecommitdiff
path: root/c/common.cpp
diff options
context:
space:
mode:
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];