Speed optimization.
--HG-- branch : develop
This commit is contained in:
parent
185e228853
commit
133d82d602
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user