aboutsummaryrefslogtreecommitdiff
path: root/c/pl.h
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-08-04 18:18:37 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-08-04 18:19:37 +0200
commit94119478207034b767c1d0a4fa5d8950f7b07b02 (patch)
treece9ffb57a4947855b09c54017f6b2abe3e8af6d3 /c/pl.h
parent1c218db34a3bd4aba5c1c088561b91b02e691fde (diff)
downloadEpisodeBrowser-94119478207034b767c1d0a4fa5d8950f7b07b02.tar.gz
Use C++ casts, nullptr.
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 b0cdbbd..2992e86 100644
--- a/c/pl.h
+++ b/c/pl.h
@@ -102,7 +102,7 @@ int Pl(const char* const mod, const char* const pred, T... xs)
const term_t t = PL_new_term_refs(sizeof...(T));
if (!PlPutN(t, xs...)) return 0;
- Query q(NULL, PL_predicate(pred, sizeof...(T), mod), t);
+ Query q(nullptr, PL_predicate(pred, sizeof...(T), mod), t);
if constexpr (Except) {
if (!q.NextSolution()) return 0;