diff options
author | John Ankarström <john@ankarstrom.se> | 2022-07-17 02:05:15 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-07-17 02:05:15 +0200 |
commit | e96b4db3fb46384f286e9297186b87648c7219c4 (patch) | |
tree | 16766c9d41426ee110f374e5915ab5d6b9bcdb2a /c/pl.cpp | |
parent | 26bc41099c10b3a63fd744690df5c25cb713718b (diff) | |
download | EpisodeBrowser-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.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |