mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
More auto
This commit is contained in:
parent
268bebbddd
commit
e2276cbc1c
@ -754,7 +754,7 @@ void MainWindowViewer::clearRecentFiles()
|
||||
|
||||
void MainWindowViewer::openRecent()
|
||||
{
|
||||
auto *action = qobject_cast<QAction *>(sender());
|
||||
auto action = qobject_cast<QAction *>(sender());
|
||||
|
||||
openComicFromRecentAction(action);
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ PageLabelWidget::PageLabelWidget(QWidget *parent)
|
||||
void PageLabelWidget::show()
|
||||
{
|
||||
if (this->pos().y() <= 0 && animation->state() != QPropertyAnimation::Running) {
|
||||
auto *parent = dynamic_cast<QWidget *>(this->parent());
|
||||
auto parent = dynamic_cast<QWidget *>(this->parent());
|
||||
if (parent == nullptr) {
|
||||
return;
|
||||
}
|
||||
@ -62,7 +62,7 @@ void PageLabelWidget::show()
|
||||
void PageLabelWidget::hide()
|
||||
{
|
||||
if (this->pos().y() >= 0 && animation->state() != QPropertyAnimation::Running) {
|
||||
auto *parent = dynamic_cast<QWidget *>(this->parent());
|
||||
auto parent = dynamic_cast<QWidget *>(this->parent());
|
||||
if (parent == nullptr) {
|
||||
return;
|
||||
}
|
||||
@ -87,7 +87,7 @@ void PageLabelWidget::paintEvent(QPaintEvent *)
|
||||
|
||||
void PageLabelWidget::updatePosition()
|
||||
{
|
||||
auto *parent = dynamic_cast<QWidget *>(this->parent());
|
||||
auto parent = dynamic_cast<QWidget *>(this->parent());
|
||||
if (parent == nullptr) {
|
||||
return;
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ void Startup::start()
|
||||
logger->installMsgHandler();*/
|
||||
|
||||
// Configure template loader and cache
|
||||
auto *templateSettings = new QSettings(configFileName, QSettings::IniFormat, app);
|
||||
auto templateSettings = new QSettings(configFileName, QSettings::IniFormat, app);
|
||||
templateSettings->beginGroup("templates");
|
||||
|
||||
if (templateSettings->value("cacheSize").isNull())
|
||||
@ -74,7 +74,7 @@ void Startup::start()
|
||||
Static::templateLoader = new TemplateCache(templateSettings, app);
|
||||
|
||||
// Configure session store
|
||||
auto *sessionSettings = new QSettings(configFileName, QSettings::IniFormat, app);
|
||||
auto sessionSettings = new QSettings(configFileName, QSettings::IniFormat, app);
|
||||
sessionSettings->beginGroup("sessions");
|
||||
|
||||
if (sessionSettings->value("expirationTime").isNull())
|
||||
@ -85,7 +85,7 @@ void Startup::start()
|
||||
Static::yacreaderSessionStore = new YACReaderHttpSessionStore(Static::sessionStore, app);
|
||||
|
||||
// Configure static file controller
|
||||
auto *fileSettings = new QSettings(configFileName, QSettings::IniFormat, app);
|
||||
auto fileSettings = new QSettings(configFileName, QSettings::IniFormat, app);
|
||||
fileSettings->beginGroup("docroot");
|
||||
|
||||
QString basedocroot = "./server/docroot";
|
||||
@ -106,7 +106,7 @@ void Startup::start()
|
||||
|
||||
// Configure and start the TCP listener
|
||||
qDebug("ServiceHelper: Starting service");
|
||||
auto *listenerSettings = new QSettings(configFileName, QSettings::IniFormat, app);
|
||||
auto listenerSettings = new QSettings(configFileName, QSettings::IniFormat, app);
|
||||
listenerSettings->beginGroup("listener");
|
||||
|
||||
if (listenerSettings->value("maxRequestSize").isNull())
|
||||
|
Loading…
Reference in New Issue
Block a user