From d82f7fbd8eea8afbc2aced5e8aa068e6dcf63bfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 5 Feb 2024 21:42:45 +0100 Subject: [PATCH] clang-tidy --- gui/xmlreportv2.cpp | 4 ++-- gui/xmlreportv2.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/xmlreportv2.cpp b/gui/xmlreportv2.cpp index 09ee20955944..9207938c3dd7 100644 --- a/gui/xmlreportv2.cpp +++ b/gui/xmlreportv2.cpp @@ -57,9 +57,9 @@ static const QString VersionAttribute = "version"; static const QString ProductNameAttribute = "product-name"; static const QString VerboseAttribute = "verbose"; -XmlReportV2::XmlReportV2(const QString &filename, const QString& productName) : +XmlReportV2::XmlReportV2(const QString &filename, QString productName) : XmlReport(filename), - mProductName(productName), + mProductName(std::move(productName)), mXmlReader(nullptr), mXmlWriter(nullptr) {} diff --git a/gui/xmlreportv2.h b/gui/xmlreportv2.h index 8fe08ea705d7..9eccaf84226e 100644 --- a/gui/xmlreportv2.h +++ b/gui/xmlreportv2.h @@ -39,7 +39,7 @@ class QXmlStreamWriter; */ class XmlReportV2 : public XmlReport { public: - explicit XmlReportV2(const QString &filename, const QString& productName); + explicit XmlReportV2(const QString &filename, QString productName); ~XmlReportV2() override; /**