Commit f3f8cca6 authored by Kurt Hindenburg's avatar Kurt Hindenburg
Browse files

Use auto when initializing with a template cast to avoid duplicating the type

parent d3519ae2
......@@ -183,7 +183,7 @@ void Application::createWindow(const Profile::Ptr &profile, const QString &direc
void Application::detachTerminals(ViewSplitter *splitter,const QHash<TerminalDisplay*, Session*>& sessionsMap)
{
MainWindow *currentWindow = qobject_cast<MainWindow*>(sender());
auto *currentWindow = qobject_cast<MainWindow*>(sender());
MainWindow *window = newMainWindow();
ViewManager *manager = window->viewManager();
......
......@@ -65,7 +65,7 @@ BookmarkHandler::BookmarkHandler(KActionCollection *collection, QMenu *menu, boo
KBookmarkManager *manager = KBookmarkManager::managerForFile(_file, QStringLiteral("konsole"));
manager->setUpdate(true);
BookmarkMenu *bookmarkMenu = new BookmarkMenu(manager, this, _menu, toplevel ? collection : nullptr);
auto *bookmarkMenu = new BookmarkMenu(manager, this, _menu, toplevel ? collection : nullptr);
bookmarkMenu->setParent(this);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment