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

This commit is contained in:
Kurt Hindenburg
2020-05-02 22:07:08 -04:00
parent d3519ae24c
commit f3f8cca628
2 changed files with 2 additions and 2 deletions

View File

@@ -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);
}