aboutsummaryrefslogtreecommitdiff
path: root/c/main.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/main.cpp
parentd9e1caa37e53c7dbc42b1fc652efc23a40c47c42 (diff)
downloadEpisodeBrowser-288f4c294ac1be89b151a3f96eb9d5cb9d91055f.tar.gz
Make WsoFromSz and WsoCopy static member functions of wstring_owner.
Diffstat (limited to 'c/main.cpp')
-rw-r--r--c/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/c/main.cpp b/c/main.cpp
index f896ef3..ebce3a6 100644
--- a/c/main.cpp
+++ b/c/main.cpp
@@ -56,9 +56,9 @@ void OnTerminate() noexcept
try { why = PlString(t); } catch (...) {}
} catch (const Win32Error& e) {
what = L"a Windows error";
- try { why = WsoCopy(e.WhatW()); } catch (...) {}
+ try { why = wstring_owner::copy(e.WhatW()); } catch (...) {}
} catch (const std::exception& e) {
- try { why = WsoFromSz(e.what()); } catch (...) {}
+ try { why = wstring_owner::from_narrow(e.what()); } catch (...) {}
} catch (...) {}
wchar_t msg[256] = {0};
@@ -502,7 +502,7 @@ void WaitFor(const char* mod, const char* pred)
Plx(mod,"thread_create",pred,&aThread);
SendMessage(g_hWndStatus, SB_SETTEXT, MAKEWPARAM(1,0), (LPARAM)L".");
if (prefer(iTimer = SetTimer(NULL, -1, 500, proc))) {
- activePred = WsoFromSz(pred);
+ activePred = wstring_owner::from_narrow(pred);
bActive = 1;
}
}