Clazy warning. Reverse candidate.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-07-24 18:10:32 +03:00
parent 1bd74c7b35
commit 26397164e8

View File

@ -486,6 +486,7 @@ void VLayoutGenerator::GatherPages()
}
QVector<VLayoutPaper> 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<VLayoutPaper> nPapers;
nPapers.reserve(nDetails.size());
for (int i = 0; i < nDetails.size(); ++i)
{
const int height = IsPortrait() ? qRound(papersLength.at(i)+accuracyPointOnLine*4) : PageHeight();