aboutsummaryrefslogtreecommitdiff
path: root/c/datalistview.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-19 14:50:00 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-19 14:50:00 +0200
commitbc6d9cdf289af9167912329f1c5f4e39bd6bac29 (patch)
tree27c5c0f75bd631f0ddf32feddb13d14ad8bf1b1d /c/datalistview.cpp
parent2ffbd7fcc178e68e7132d2f8f649d131c5a5d3af (diff)
downloadEpisodeBrowser-bc6d9cdf289af9167912329f1c5f4e39bd6bac29.tar.gz
Use static member function instead of friend function.
Diffstat (limited to 'c/datalistview.cpp')
-rw-r--r--c/datalistview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/datalistview.cpp b/c/datalistview.cpp
index 704b689..517a055 100644
--- a/c/datalistview.cpp
+++ b/c/datalistview.cpp
@@ -11,8 +11,6 @@
#include "main.h"
#include "pl.h"
-extern EpisodeListView* const g_pElv;
-
DataListView::DataListView(const HWND hWndParent)
: ListView(hWndParent, (HMENU)IDC_DATALISTVIEW, LVS_NOCOLUMNHEADER)
{
@@ -33,6 +31,8 @@ DataListView::DataListView(const HWND hWndParent)
void DataListView::ShowEpisode(const int iEpisode)
{
+ extern EpisodeListView* const g_pElv;
+
ListView_DeleteAllItems(hWnd);
LVITEM lviKey, lviValue;