From 3b8037c891aa4a2394885f3bbc96b1cec1700ff5 Mon Sep 17 00:00:00 2001 From: David Hampton Date: Wed, 26 Oct 2022 17:28:05 -0400 Subject: [PATCH] clazy: Replace chained QString::arg calls with a call to the multi-arg overload. --- mythtv/libs/libmythui/platforms/mythdrmdevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mythtv/libs/libmythui/platforms/mythdrmdevice.cpp b/mythtv/libs/libmythui/platforms/mythdrmdevice.cpp index 891ec7e225b..969692a4d33 100644 --- a/mythtv/libs/libmythui/platforms/mythdrmdevice.cpp +++ b/mythtv/libs/libmythui/platforms/mythdrmdevice.cpp @@ -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)))