From db928c8b0e6e4146eb6c619adc2dbcf55180f6f8 Mon Sep 17 00:00:00 2001 From: Mat Sutcliffe Date: Wed, 19 Dec 2018 18:51:02 +0000 Subject: [PATCH] Fixed clazy warnings: QString::arg. --- src/blackcore/vatsim/voicechannelvatlib.cpp | 2 +- src/blackgui/stylesheetutility.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blackcore/vatsim/voicechannelvatlib.cpp b/src/blackcore/vatsim/voicechannelvatlib.cpp index fa65f241a..53b119849 100644 --- a/src/blackcore/vatsim/voicechannelvatlib.cpp +++ b/src/blackcore/vatsim/voicechannelvatlib.cpp @@ -58,7 +58,7 @@ namespace BlackCore // No one else is using this voice room, so prepare to join m_voiceRoom = voiceRoom; - QString callsign = QString("%1 (%2)").arg(m_callsign.toQString()).arg(m_userId); + QString callsign = QString("%1 (%2)").arg(m_callsign.toQString(), m_userId); Vat_SetRoomInfo(m_voiceChannel.data(), qPrintable(voiceRoom.getHostname()), 3782, qPrintable(voiceRoom.getChannel()), qPrintable(callsign)); diff --git a/src/blackgui/stylesheetutility.cpp b/src/blackgui/stylesheetutility.cpp index 2d1b32872..739b22aeb 100644 --- a/src/blackgui/stylesheetutility.cpp +++ b/src/blackgui/stylesheetutility.cpp @@ -430,7 +430,7 @@ namespace BlackGui Q_ASSERT(!uncheckedIcon.isEmpty()); static const QString st = "QCheckBox::indicator { width: %1; height: %2; } QCheckBox::indicator:checked { image: url(%3); } QCheckBox::indicator:unchecked { image: url(%4); }"; - return st.arg(width).arg(height).arg(checkedIcon).arg(uncheckedIcon); + return st.arg(width, height, checkedIcon, uncheckedIcon); } QString CStyleSheetUtility::concatStyles(const QString &style1, const QString &style2)