From a4a6b18561af8585901db095753b4b730d6b9f81 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 18 Jun 2019 16:04:50 +0300 Subject: [PATCH] Cppcheck warning. --HG-- branch : develop --- src/libs/vlayout/vlayoutgenerator.cpp | 2 +- src/libs/vlayout/vlayoutgenerator.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/vlayout/vlayoutgenerator.cpp b/src/libs/vlayout/vlayoutgenerator.cpp index a3d405d54..65d4a52b2 100644 --- a/src/libs/vlayout/vlayoutgenerator.cpp +++ b/src/libs/vlayout/vlayoutgenerator.cpp @@ -99,7 +99,7 @@ int VLayoutGenerator::DetailsCount() } //--------------------------------------------------------------------------------------------------------------------- -void VLayoutGenerator::Generate(QElapsedTimer timer, qint64 timeout, LayoutErrors previousState) +void VLayoutGenerator::Generate(const QElapsedTimer &timer, qint64 timeout, LayoutErrors previousState) { stopGeneration.store(false); papers.clear(); diff --git a/src/libs/vlayout/vlayoutgenerator.h b/src/libs/vlayout/vlayoutgenerator.h index 400bb8b39..ba6a5f8d0 100644 --- a/src/libs/vlayout/vlayoutgenerator.h +++ b/src/libs/vlayout/vlayoutgenerator.h @@ -79,7 +79,7 @@ public: qreal GetShift() const; void SetShift(qreal shift); - void Generate(QElapsedTimer timer, qint64 timeout, LayoutErrors previousState = LayoutErrors::NoError); + void Generate(const QElapsedTimer &timer, qint64 timeout, LayoutErrors previousState = LayoutErrors::NoError); qreal LayoutEfficiency() const;