Skip to content

Commit

Permalink
MythDRMDevice: Squash a couple of clang-tidy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-kendall committed Jan 19, 2021
1 parent 82c3d10 commit 055b12f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mythtv/libs/libmythui/platforms/mythdrmdevice.cpp
Expand Up @@ -644,7 +644,7 @@ void MythDRMDevice::Authenticate()

if (m_authenticated)
{
auto extra = m_atomic ? "" : " but atomic operations required for mode switching";
const auto * extra = m_atomic ? "" : " but atomic operations required for mode switching";
LOG(VB_GENERAL, m_verbose, LOC + "Authenticated" + extra);
}
else
Expand Down Expand Up @@ -691,10 +691,10 @@ bool MythDRMDevice::Initialise()
}

// Does the connected display have the serial number we are looking for?
if (auto edidprop = MythDRMProperty::GetProperty("EDID", connector->m_properties); edidprop.get())
if (const auto edidprop = MythDRMProperty::GetProperty("EDID", connector->m_properties); edidprop.get())
{
MythEDID edid;
if (auto blob = dynamic_cast<MythDRMBlobProperty*>(edidprop.get()); blob)
if (auto * blob = dynamic_cast<MythDRMBlobProperty*>(edidprop.get()); blob)
edid = MythEDID(blob->m_blob);

if (edid.Valid() && edid.SerialNumbers().contains(serial))
Expand Down

0 comments on commit 055b12f

Please sign in to comment.