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.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'c/pl.h') diff --git a/c/pl.h b/c/pl.h index 0a65c96..1c526a0 100644 --- a/c/pl.h +++ b/c/pl.h @@ -71,7 +71,7 @@ inline int PlGet(term_t t, wstring_owner* x) { Mark m; char* s; if (!PlGet(t, &s)) return 0; - *x = WsoFromSz(s); + *x = wstring_owner::from_narrow(s); return 1; /* or catch potential exception from BstrFromSz? */ } -- cgit v1.2.3