From 26397164e89e4ae971b0b5459c51e25414fb9fa3 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 24 Jul 2019 18:10:32 +0300 Subject: [PATCH] Clazy warning. Reverse candidate. --HG-- branch : develop --- src/libs/vlayout/vlayoutgenerator.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libs/vlayout/vlayoutgenerator.cpp b/src/libs/vlayout/vlayoutgenerator.cpp index a1ff123c4..ff2a1c4e2 100644 --- a/src/libs/vlayout/vlayoutgenerator.cpp +++ b/src/libs/vlayout/vlayoutgenerator.cpp @@ -486,6 +486,7 @@ void VLayoutGenerator::GatherPages() } QVector nPapers; + nPapers.reserve(nDetails.size()); for (int i = 0; i < nDetails.size(); ++i) { VLayoutPaper paper(PageHeight(), PageWidth(), bank->GetLayoutWidth()); @@ -588,6 +589,7 @@ void VLayoutGenerator::UnitePages() } QVector nPapers; + nPapers.reserve(nDetails.size()); for (int i = 0; i < nDetails.size(); ++i) { const int height = IsPortrait() ? qRound(papersLength.at(i)+accuracyPointOnLine*4) : PageHeight();