From e96b4db3fb46384f286e9297186b87648c7219c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sun, 17 Jul 2022 02:05:15 +0200 Subject: Add const to pointers, update spacing. It seems that "right-spaced" pointers are more widely used among C++ programmers. --- c/pl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'c/pl.cpp') diff --git a/c/pl.cpp b/c/pl.cpp index 307fc1e..dcabd78 100644 --- a/c/pl.cpp +++ b/c/pl.cpp @@ -34,7 +34,7 @@ int Query::NextSolution() return 0; } -int PL_get_tchars(const term_t t, TCHAR **lpTsz, const int iFlags) +int PL_get_tchars(const term_t t, TCHAR** const lpTsz, const int iFlags) { #ifdef UNICODE size_t len; @@ -48,7 +48,7 @@ int PL_get_tchars(const term_t t, TCHAR **lpTsz, const int iFlags) #endif } -int Plx(const char *szMod, const char *szPred) +int Plx(const char* const szMod, const char* const szPred) { const term_t t = PL_new_term_refs(0); Query q(NULL, PL_predicate(szPred, 0, szMod), t); -- cgit v1.2.3