aboutsummaryrefslogtreecommitdiff
path: root/c/main.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-30 00:01:49 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-30 00:01:49 +0200
commitbabbd4c9c26d997683280ac663e03b04910b2826 (patch)
treeaf42a3239ee6dd7bfcd0b762b0b91557b3996937 /c/main.cpp
parent2b8b6ac284dca2bd22514d293519cb877a1079d8 (diff)
downloadEpisodeBrowser-babbd4c9c26d997683280ac663e03b04910b2826.tar.gz
Formatting.
This style is more compact and quicker to read once you know what the first two member in LVITEM are (mask and iItem).
Diffstat (limited to 'c/main.cpp')
-rw-r--r--c/main.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/c/main.cpp b/c/main.cpp
index 7fef22e..c9be01d 100644
--- a/c/main.cpp
+++ b/c/main.cpp
@@ -383,9 +383,7 @@ void WndProcMainMenu(const HWND hWnd, unsigned short wCommand)
const int iEpFocus = ListView_GetNextItem(g_pElv->hWnd, -1, LVNI_FOCUSED);
if (iEpFocus == -1) break;
- LVITEM lvi;
- lvi.iItem = iEpFocus;
- lvi.mask = LVIF_PARAM;
+ LVITEM lvi = {LVIF_PARAM, iEpFocus};
if (!ListView_GetItem(g_pElv->hWnd, &lvi)) break;
char* sz;