aboutsummaryrefslogtreecommitdiff
path: root/c/listview.h
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-09-02 23:51:40 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-09-02 23:51:40 +0200
commit00447478cd1d0d64752114df49fee5ee8bdcedbe (patch)
treeca1168b19ab977c1857d3a3e341a3e80b33cc6d3 /c/listview.h
parentff9ba3f6e60fa30f52dd94e48214be5e1be1b28a (diff)
downloadEpisodeBrowser-00447478cd1d0d64752114df49fee5ee8bdcedbe.tar.gz
Add Act.
Diffstat (limited to 'c/listview.h')
-rw-r--r--c/listview.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/c/listview.h b/c/listview.h
index 30164f7..ba3a115 100644
--- a/c/listview.h
+++ b/c/listview.h
@@ -13,9 +13,9 @@ struct ListView
ListView(Window& parent, HMENU hMenu, DWORD dwStyle);
/* Retrieve next matching list view item. */
- bool FindNextItem(LVITEM* lvi, LPARAM lParam);
+ bool FindNextItem(LVITEM* lvi, LPARAM lParam) noexcept;
/* Naively calculate height appropriate for number of items. */
- virtual int Height();
+ virtual int Height() noexcept;
/* Update column widths on window size change (unimplemented
* by default). */
virtual void ResizeColumns(int w);
@@ -26,7 +26,7 @@ protected:
WNDPROC m_proc0;
};
-inline bool ListView::FindNextItem(LVITEM* const lvi, const LPARAM lParam)
+inline bool ListView::FindNextItem(LVITEM* const lvi, const LPARAM lParam) noexcept
{
if ((lvi->iItem = ListView_GetNextItem(hWnd, lvi->iItem, lParam)) == -1)
return false;