From d9e1caa37e53c7dbc42b1fc652efc23a40c47c42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sun, 31 Jul 2022 19:56:53 +0200 Subject: Limit use of Hungarian notation. I don't hate Hungarian notation. It has some very nice qualities. But it also adds a lot of typing. That said, not using it feels a bit... unsafe. I might go back on this decision. We'll see. --- c/pl.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'c/pl.cpp') diff --git a/c/pl.cpp b/c/pl.cpp index 1255609..e0c7971 100644 --- a/c/pl.cpp +++ b/c/pl.cpp @@ -90,11 +90,11 @@ int Query::NextSolution() } /* Convert Prolog term to wide characters. */ -wstring_owner PlString(const term_t t, const int iFlags) +wstring_owner PlString(const term_t t, const int flags) { - char* sz; - if (PL_get_chars(t, &sz, iFlags)) - return {WsoFromSz(sz)}; + char* s; + if (PL_get_chars(t, &s, flags)) + return {WsoFromSz(s)}; else return {}; } -- cgit v1.2.3