aboutsummaryrefslogtreecommitdiff
path: root/c/episodelistview.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-20 20:25:59 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-20 20:25:59 +0200
commit3f842c733568aa9068aa83fad52540eb98f334b1 (patch)
tree398f9f4ac407c96c3cf00755b564fef6b84ea92b /c/episodelistview.cpp
parent0d5736538a98b2c4001c45d073affc6bc0d772e5 (diff)
downloadEpisodeBrowser-3f842c733568aa9068aa83fad52540eb98f334b1.tar.gz
Simplify require, prefer.
Diffstat (limited to 'c/episodelistview.cpp')
-rw-r--r--c/episodelistview.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/c/episodelistview.cpp b/c/episodelistview.cpp
index 5df33a1..676f375 100644
--- a/c/episodelistview.cpp
+++ b/c/episodelistview.cpp
@@ -90,7 +90,7 @@ LRESULT EpisodeListView::HandleNotify(const LPARAM lParam)
{
extern HFONT g_hfBold;
if (!Pl("track_episodes","watched",pLvCd->nmcd.lItemlParam)) {
- require<SelectObject>(pLvCd->nmcd.hdc, g_hfBold);
+ require(SelectObject(pLvCd->nmcd.hdc, g_hfBold));
return CDRF_NEWFONT;
}
break;
@@ -125,9 +125,9 @@ LRESULT EpisodeListView::HandleNotify(const LPARAM lParam)
{
extern HMENU g_hPopupMenu;
const DWORD dwPos = GetMessagePos();
- require<TrackPopupMenu>(g_hPopupMenu, TPM_RIGHTBUTTON,
+ require(TrackPopupMenu(g_hPopupMenu, TPM_RIGHTBUTTON,
LOWORD(dwPos), HIWORD(dwPos), 0,
- m_hWndParent, (const RECT*)NULL);
+ m_hWndParent, (const RECT*)NULL));
break;
}
}