diff options
author | John Ankarström <john@ankarstrom.se> | 2022-08-28 03:59:46 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-08-28 03:59:46 +0200 |
commit | a8a73a21495bf54f720088cf789d8cf6cf682661 (patch) | |
tree | 730a3ace05ee8ada1d6c15b5c3349476ed0ff247 | |
parent | 90c253dcfeb16a5972f913449422e3b5eabd92b8 (diff) | |
download | EpisodeBrowser-a8a73a21495bf54f720088cf789d8cf6cf682661.tar.gz |
Use reference instead of copy.
-rw-r--r-- | c/episodelistview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/c/episodelistview.cpp b/c/episodelistview.cpp index 071fbce..8581890 100644 --- a/c/episodelistview.cpp +++ b/c/episodelistview.cpp @@ -390,7 +390,7 @@ void EpisodeListView::Update() SendMessageW(hWnd, WM_SETREDRAW, FALSE, 0); ListView_DeleteAllItems(hWnd); for (int iEp = 1; iEp <= g_cfg.cEp; iEp++) { - ElvDataA e = g_fvElv.At(iEp-1); + ElvDataA& e = g_fvElv.At(iEp-1); if (!e.siEp[0]) continue; |