aboutsummaryrefslogtreecommitdiff
path: root/c/datalistview.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/datalistview.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/datalistview.cpp')
-rw-r--r--c/datalistview.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/c/datalistview.cpp b/c/datalistview.cpp
index a25cc83..855fd03 100644
--- a/c/datalistview.cpp
+++ b/c/datalistview.cpp
@@ -11,7 +11,7 @@
#include "main.h"
#include "pl.h"
-extern EpisodeListView *g_lpElv;
+extern EpisodeListView* const g_lpElv;
DataListView::DataListView(const HWND hWndParent)
: ListView(hWndParent, (HMENU)IDC_DATALISTVIEW, LVS_NOCOLUMNHEADER)
@@ -45,8 +45,8 @@ void DataListView::ShowEpisode(const int iEpisode)
PL_predicate("episode_datum", 3, "episode_data"), t);
for (int i = 0; PL_next_solution(q); i++) {
- TCHAR *tszKey;
- TCHAR *tszValue;
+ TCHAR* tszKey;
+ TCHAR* tszValue;
if (!(PlGet(t+1, &tszKey) && PlGet(t+2, &tszValue)))
continue;