Speed optimization.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-07-21 12:28:28 +03:00
parent 185e228853
commit 133d82d602

View File

@ -1114,6 +1114,7 @@ QList<QGraphicsScene *> MainWindowsNoGUI::CreateScenes(const QList<QGraphicsItem
const QList<QList<QGraphicsItem *> > &details) const QList<QList<QGraphicsItem *> > &details)
{ {
QList<QGraphicsScene *> scenes; QList<QGraphicsScene *> scenes;
scenes.reserve(papers.size());
for (int i=0; i<papers.size(); ++i) for (int i=0; i<papers.size(); ++i)
{ {
auto *scene = new VMainGraphicsScene(); auto *scene = new VMainGraphicsScene();