diff --git a/YACReader/main_window_viewer.cpp b/YACReader/main_window_viewer.cpp index 0ddd901e..f4c627fc 100644 --- a/YACReader/main_window_viewer.cpp +++ b/YACReader/main_window_viewer.cpp @@ -754,7 +754,7 @@ void MainWindowViewer::clearRecentFiles() void MainWindowViewer::openRecent() { - auto *action = qobject_cast(sender()); + auto action = qobject_cast(sender()); openComicFromRecentAction(action); } diff --git a/YACReader/page_label_widget.cpp b/YACReader/page_label_widget.cpp index 19271a39..7182fec0 100644 --- a/YACReader/page_label_widget.cpp +++ b/YACReader/page_label_widget.cpp @@ -44,7 +44,7 @@ PageLabelWidget::PageLabelWidget(QWidget *parent) void PageLabelWidget::show() { if (this->pos().y() <= 0 && animation->state() != QPropertyAnimation::Running) { - auto *parent = dynamic_cast(this->parent()); + auto parent = dynamic_cast(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(this->parent()); + auto parent = dynamic_cast(this->parent()); if (parent == nullptr) { return; } @@ -87,7 +87,7 @@ void PageLabelWidget::paintEvent(QPaintEvent *) void PageLabelWidget::updatePosition() { - auto *parent = dynamic_cast(this->parent()); + auto parent = dynamic_cast(this->parent()); if (parent == nullptr) { return; } diff --git a/YACReaderLibrary/server/startup.cpp b/YACReaderLibrary/server/startup.cpp index 7cf632c2..b7033471 100644 --- a/YACReaderLibrary/server/startup.cpp +++ b/YACReaderLibrary/server/startup.cpp @@ -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())