Skip to content

Commit

Permalink
tidy: Fix readability-use-anyofallof warning in mythscreensaverdbus.cpp.
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdude42 committed Oct 2, 2020
1 parent ec09218 commit 8ac169c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mythtv/libs/libmythui/platforms/mythscreensaverdbus.cpp
Expand Up @@ -160,8 +160,6 @@ void MythScreenSaverDBus::Reset()

bool MythScreenSaverDBus::Asleep()
{
for (auto * interface : m_dbusPrivateInterfaces)
if (interface->m_inhibited)
return true;
return false;
return std::any_of(m_dbusPrivateInterfaces.cbegin(), m_dbusPrivateInterfaces.cend(),
[](auto * interface){ return interface->m_inhibited; } );
}

0 comments on commit 8ac169c

Please sign in to comment.