From 00447478cd1d0d64752114df49fee5ee8bdcedbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 2 Sep 2022 23:51:40 +0200 Subject: Add Act. --- c/listview.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'c/listview.h') 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; -- cgit v1.2.3