diff options
author | John Ankarström <john@ankarstrom.se> | 2022-07-30 00:01:49 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-07-30 00:01:49 +0200 |
commit | babbd4c9c26d997683280ac663e03b04910b2826 (patch) | |
tree | af42a3239ee6dd7bfcd0b762b0b91557b3996937 /c/main.cpp | |
parent | 2b8b6ac284dca2bd22514d293519cb877a1079d8 (diff) | |
download | EpisodeBrowser-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.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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; |