From b5917be252caf9d38ae9466352c4176ef25732e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 7 Sep 2022 23:33:08 +0200 Subject: Simplify Err message format. --- c/listview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'c/listview.cpp') 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(SetWindowLongPtr( hWnd, GWLP_WNDPROC, reinterpret_cast(Except<::WndProc>))); if (!SetPropW(hWnd, L"this", reinterpret_cast(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(g_hfNormal), MAKELPARAM(FALSE, 0)); } -- cgit v1.2.3