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/episodelistview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'c/episodelistview.cpp') diff --git a/c/episodelistview.cpp b/c/episodelistview.cpp index 7d77331..320f98f 100644 --- a/c/episodelistview.cpp +++ b/c/episodelistview.cpp @@ -163,7 +163,7 @@ LRESULT EpisodeListView::HandleNotify(const LPARAM lParam) if (!e.bWatched) { extern HFONT g_hfBold; if (!SelectObject(nm->nmcd.hdc, g_hfBold)) - throw Err(WINDOWS, L"Bold font could not be selected: %s."); + throw Err(WINDOWS, L"Bold font could not be selected"); return CDRF_NEWFONT; } break; @@ -186,7 +186,7 @@ LRESULT EpisodeListView::HandleNotify(const LPARAM lParam) const DWORD pos = GetMessagePos(); if (!TrackPopupMenu(parent.hMenuPopup, TPM_RIGHTBUTTON, LOWORD(pos), HIWORD(pos), 0, parent.hWnd, nullptr)) - throw Err(WINDOWS, L"Context menu could not be opened: %s."); + throw Err(WINDOWS, L"Context menu could not be opened"); return 0; } -- cgit v1.2.3