aboutsummaryrefslogtreecommitdiff
path: root/c/pl.h
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/pl.h
parentd9e1caa37e53c7dbc42b1fc652efc23a40c47c42 (diff)
downloadEpisodeBrowser-288f4c294ac1be89b151a3f96eb9d5cb9d91055f.tar.gz
Make WsoFromSz and WsoCopy static member functions of wstring_owner.
Diffstat (limited to 'c/pl.h')
-rw-r--r--c/pl.h2
1 files changed, 1 insertions, 1 deletions
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? */
}