Cppcheck warning.

This commit is contained in:
Roman Telezhynskyi 2021-07-26 16:52:54 +03:00
parent e5105e4eed
commit cfac8e8355
2 changed files with 2 additions and 2 deletions

View File

@ -404,7 +404,7 @@ QPointF VLayoutExporter::offset() const
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
void VLayoutExporter::SetOffset(QPointF newOffset) void VLayoutExporter::SetOffset(const QPointF &newOffset)
{ {
m_offset = newOffset; m_offset = newOffset;
} }

View File

@ -98,7 +98,7 @@ public:
static QString ExportFormatSuffix(LayoutExportFormats format); static QString ExportFormatSuffix(LayoutExportFormats format);
auto offset() const -> QPointF; auto offset() const -> QPointF;
void SetOffset(QPointF newOffset); void SetOffset(const QPointF &newOffset);
private: private:
QString m_fileName{}; QString m_fileName{};