Skip to content

Commit

Permalink
Use SaveBoolSetting instead of SaveSetting.
Browse files Browse the repository at this point in the history
The clang-tidy "implicit boolean conversion" check pointed out a
boolean to intinteger conversion that would be better handled by using
the MythCoreContext::SaveBoolSetting function.
  • Loading branch information
linuxdude42 committed Apr 3, 2019
1 parent 5f1a0d3 commit 2f929b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythtv/programs/mythfrontend/playbackbox.cpp
Expand Up @@ -4458,8 +4458,8 @@ void PlaybackBox::saveViewChanges()
if (m_viewMask == VIEW_NONE)
m_viewMask = VIEW_TITLES;
gCoreContext->SaveSetting("DisplayGroupDefaultViewMask", (int)m_viewMask);
gCoreContext->SaveSetting("PlaybackWatchList",
(bool)(m_viewMask & VIEW_WATCHLIST));
gCoreContext->SaveBoolSetting("PlaybackWatchList",
(m_viewMask & VIEW_WATCHLIST) != 0);
}

void PlaybackBox::showGroupFilter(void)
Expand Down

0 comments on commit 2f929b7

Please sign in to comment.