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{};