aboutsummaryrefslogtreecommitdiff
path: root/c/pl.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-17 02:05:15 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-17 02:05:15 +0200
commite96b4db3fb46384f286e9297186b87648c7219c4 (patch)
tree16766c9d41426ee110f374e5915ab5d6b9bcdb2a /c/pl.cpp
parent26bc41099c10b3a63fd744690df5c25cb713718b (diff)
downloadEpisodeBrowser-e96b4db3fb46384f286e9297186b87648c7219c4.tar.gz
Add const to pointers, update spacing.
It seems that "right-spaced" pointers are more widely used among C++ programmers.
Diffstat (limited to 'c/pl.cpp')
-rw-r--r--c/pl.cpp4
1 files changed, 2 insertions, 2 deletions
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);