mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Use auto to avoid duplicating the type name
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user