From cfac8e8355cbddd5cb9671d8d3315090b0e86299 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 26 Jul 2021 16:52:54 +0300 Subject: [PATCH] Cppcheck warning. --- src/libs/vlayout/vlayoutexporter.cpp | 2 +- src/libs/vlayout/vlayoutexporter.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/vlayout/vlayoutexporter.cpp b/src/libs/vlayout/vlayoutexporter.cpp index 96d71e144..fa19a1cb8 100644 --- a/src/libs/vlayout/vlayoutexporter.cpp +++ b/src/libs/vlayout/vlayoutexporter.cpp @@ -404,7 +404,7 @@ QPointF VLayoutExporter::offset() const } //--------------------------------------------------------------------------------------------------------------------- -void VLayoutExporter::SetOffset(QPointF newOffset) +void VLayoutExporter::SetOffset(const QPointF &newOffset) { m_offset = newOffset; } diff --git a/src/libs/vlayout/vlayoutexporter.h b/src/libs/vlayout/vlayoutexporter.h index 74fe7e267..701b7bc4d 100644 --- a/src/libs/vlayout/vlayoutexporter.h +++ b/src/libs/vlayout/vlayoutexporter.h @@ -98,7 +98,7 @@ public: static QString ExportFormatSuffix(LayoutExportFormats format); auto offset() const -> QPointF; - void SetOffset(QPointF newOffset); + void SetOffset(const QPointF &newOffset); private: QString m_fileName{};