aboutsummaryrefslogtreecommitdiff
path: root/c/listview.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-09-07 23:33:08 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-09-07 23:33:08 +0200
commitb5917be252caf9d38ae9466352c4176ef25732e3 (patch)
tree8eee2398b84cd533999a6d6f7539131daef5acfd /c/listview.cpp
parentac7d676a1c457f71f1d3ae17d74699dd95c9c985 (diff)
downloadEpisodeBrowser-b5917be252caf9d38ae9466352c4176ef25732e3.tar.gz
Simplify Err message format.
Diffstat (limited to 'c/listview.cpp')
-rw-r--r--c/listview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/listview.cpp b/c/listview.cpp
index 537dbce..278d59d 100644
--- a/c/listview.cpp
+++ b/c/listview.cpp
@@ -22,12 +22,12 @@ ListView::ListView(Window& parent, const HMENU hMenu, const DWORD dwStyle) : par
dwStyle|WS_CHILD|WS_VISIBLE|WS_VSCROLL|WS_TABSTOP|LVS_REPORT|LVS_SHOWSELALWAYS,
0, 0, 0, 0,
parent.hWnd, hMenu, GetModuleHandle(nullptr), this)))
- throw Err(WINDOWS, L"List view could not be created: %s.");
+ throw Err(WINDOWS, L"List view could not be created");
m_proc0 = reinterpret_cast<WNDPROC>(SetWindowLongPtr(
hWnd, GWLP_WNDPROC, reinterpret_cast<LONG_PTR>(Except<::WndProc>)));
if (!SetPropW(hWnd, L"this", reinterpret_cast<HANDLE>(this)))
- throw Err(WINDOWS, L"List view property could not be set: %s.");
+ throw Err(WINDOWS, L"List view property could not be set");
ListView_SetExtendedListViewStyle(hWnd, LVS_EX_FULLROWSELECT|LVS_EX_DOUBLEBUFFER);
SendMessageW(hWnd, WM_SETFONT, reinterpret_cast<WPARAM>(g_hfNormal), MAKELPARAM(FALSE, 0));
}