Skip to content

Commit

Permalink
MythVideoFrame: clang-tidy const fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-kendall committed Oct 14, 2020
1 parent a45a0b1 commit 43079d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/mythframe.cpp
Expand Up @@ -51,7 +51,7 @@ void MythVideoFrame::Init(VideoFrameType Type, uint8_t *Buffer, size_t BufferSiz
return;
}

if (std::any_of(m_priv.cbegin(), m_priv.cend(), [](uint8_t* P) { return P != nullptr; }))
if (std::any_of(m_priv.cbegin(), m_priv.cend(), [](const uint8_t* P) { return P != nullptr; }))
{
LOG(VB_GENERAL, LOG_ERR, LOC + "Priv buffers are set (hardware frame?). Ignoring Init");
return;
Expand Down

0 comments on commit 43079d3

Please sign in to comment.