mirror of
https://github.com/KDE/konsole.git
synced 2026-04-30 10:47:05 -04:00
Use auto when initializing with a template cast to avoid duplicating the type
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user