Skip to content

Commit

Permalink
MythInteropGPU: Pass large type by reference (clazy)
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-kendall committed Dec 22, 2020
1 parent 5ae7373 commit 98c04dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/mythinteropgpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ QString MythInteropGPU::TypeToString(InteropType Type)
return "Unsupported";
}

QString MythInteropGPU::TypesToString(InteropMap Types)
QString MythInteropGPU::TypesToString(const InteropMap &Types)
{
QStringList result;
for (auto types : Types)
for (const auto & types : Types)
for (auto type : types.second)
result << TypeToString(type);
return result.join(",");
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/mythinteropgpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class MythInteropGPU : public QObject, public ReferenceCounter
using InteropMap = std::map<VideoFrameType,InteropTypes>;
static InteropMap GetTypes(MythRender* Render);
static QString TypeToString(InteropType Type);
static QString TypesToString(InteropMap Types);
static QString TypesToString(const InteropMap& Types);
static MythInteropGPU* CreateDummy();

MythInteropGPU(MythRender* Context, InteropType Type);
Expand Down

0 comments on commit 98c04dc

Please sign in to comment.