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; /**