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/datalistview.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'c/datalistview.cpp') 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; -- cgit v1.2.3