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:
@ -78,7 +78,7 @@ InfoComicsView::InfoComicsView(QWidget *parent)
|
||||
|
||||
view->setSource(QUrl("qrc:/qml/InfoComicsView.qml"));
|
||||
|
||||
QObject *rootObject = dynamic_cast<QObject *>(view->rootObject());
|
||||
auto rootObject = dynamic_cast<QObject *>(view->rootObject());
|
||||
flow = rootObject->findChild<QObject *>("flow");
|
||||
list = rootObject->findChild<QObject *>("list");
|
||||
|
||||
@ -88,7 +88,7 @@ InfoComicsView::InfoComicsView(QWidget *parent)
|
||||
selectionHelper = new YACReaderComicsSelectionHelper(this);
|
||||
comicInfoHelper = new YACReaderComicInfoHelper(this);
|
||||
|
||||
QVBoxLayout *l = new QVBoxLayout;
|
||||
auto l = new QVBoxLayout;
|
||||
l->addWidget(view);
|
||||
this->setLayout(l);
|
||||
|
||||
|
Reference in New Issue
Block a user