From 288f4c294ac1be89b151a3f96eb9d5cb9d91055f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sun, 31 Jul 2022 20:03:54 +0200 Subject: Make WsoFromSz and WsoCopy static member functions of wstring_owner. --- c/pl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'c/pl.cpp') diff --git a/c/pl.cpp b/c/pl.cpp index e0c7971..1dc22fb 100644 --- a/c/pl.cpp +++ b/c/pl.cpp @@ -94,7 +94,7 @@ wstring_owner PlString(const term_t t, const int flags) { char* s; if (PL_get_chars(t, &s, flags)) - return {WsoFromSz(s)}; + return {wstring_owner::from_narrow(s)}; else return {}; } -- cgit v1.2.3