Skip to content

Commit

Permalink
clazy: Replace chained QString::arg calls with a call to the multi-ar…
Browse files Browse the repository at this point in the history
…g overload.
  • Loading branch information
linuxdude42 committed Oct 26, 2022
1 parent d16f11d commit 3b8037c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythui/platforms/mythdrmdevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@ void MythDRMDevice::SetupDRM(const MythCommandLineParser& CmdLine)
"}\n";

// Note: mode is not sanitised
QString wrote = s_json.arg(drmGetDeviceNameFromFd2(device->GetFD()))
.arg(device->m_connector->m_name, MythDRMPlane::FormatToString(format).toLower(),
QString wrote = s_json.arg(drmGetDeviceNameFromFd2(device->GetFD()),
device->m_connector->m_name, MythDRMPlane::FormatToString(format).toLower(),
s_mythDRMVideoMode.isEmpty() ? "current" : s_mythDRMVideoMode);

if (file.write(qPrintable(wrote)))
Expand Down

0 comments on commit 3b8037c

Please sign in to comment.