Use auto to avoid duplicating the type name

This commit is contained in:
Luis Ángel San Martín
2019-05-31 20:58:06 +02:00
parent 923ad40057
commit bb334cfd50
55 changed files with 286 additions and 286 deletions

View File

@ -13,7 +13,7 @@ ComicFlowWidgetSW::ComicFlowWidgetSW(QWidget *parent)
connect(flow, SIGNAL(centerIndexChanged(int)), this, SIGNAL(centerIndexChanged(int)));
connect(flow, SIGNAL(selected(unsigned int)), this, SIGNAL(selected(unsigned int)));
QVBoxLayout *l = new QVBoxLayout;
auto l = new QVBoxLayout;
l->addWidget(flow);
setLayout(l);
@ -158,7 +158,7 @@ ComicFlowWidgetGL::ComicFlowWidgetGL(QWidget *parent)
connect(flow, SIGNAL(centerIndexChanged(int)), this, SIGNAL(centerIndexChanged(int)));
connect(flow, SIGNAL(selected(unsigned int)), this, SIGNAL(selected(unsigned int)));
QVBoxLayout *l = new QVBoxLayout;
auto l = new QVBoxLayout;
l->addWidget(flow);
l->setContentsMargins(0, 0, 0, 0);
setLayout(l);