Skip to content

Commit

Permalink
clang-tidy: missing ShouldWrite const ref
Browse files Browse the repository at this point in the history
Found with performance*

Signed-off-by: Rosen Penev <rosenp@gmail.com>
  • Loading branch information
neheb committed Feb 1, 2024
1 parent 67a8ada commit 8499b26
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion matroska/KaxCluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ DECLARE_MKX_MASTER_CONS(KaxCluster)
/*!
\brief Render the data to the stream and retrieve the position of BlockGroups for later cue entries
*/
libebml::filepos_t Render(libebml::IOCallback & output, KaxCues & CueToUpdate, ShouldWrite writeFilter = WriteSkipDefault);
libebml::filepos_t Render(libebml::IOCallback & output, KaxCues & CueToUpdate, const ShouldWrite& writeFilter = WriteSkipDefault);

/*!
\return the global timestamp of this Cluster
Expand Down
2 changes: 1 addition & 1 deletion matroska/KaxCues.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ DECLARE_MKX_MASTER(KaxCues)
/*!
\brief override to sort by timestamp/track
*/
libebml::filepos_t Render(libebml::IOCallback & output, ShouldWrite writeFilter = WriteSkipDefault) {
libebml::filepos_t Render(libebml::IOCallback & output, const ShouldWrite& writeFilter = WriteSkipDefault) {
Sort();
return EbmlMaster::Render(output, writeFilter);
}
Expand Down
2 changes: 1 addition & 1 deletion src/KaxCluster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ bool KaxCluster::AddFrame(const KaxTrackEntry & track, std::uint64_t timestamp,
/*!
\todo only put the Blocks written in the cue entries
*/
filepos_t KaxCluster::Render(IOCallback & output, KaxCues & CueToUpdate, ShouldWrite writeFilter)
filepos_t KaxCluster::Render(IOCallback & output, KaxCues & CueToUpdate, const ShouldWrite& writeFilter)
{
filepos_t Result = 0;

Expand Down

0 comments on commit 8499b26

Please sign in to comment.