Commit d85979f2 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

ModelEditor: Minor cleanup

Replace a dummy local var with nullptr

Change-Id: Ieea27fe894b141233b657a056cf3954f96649b03
Reviewed-by: default avatarJochen Becher <jochen_becher@gmx.de>
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
parent 41e5c750
......@@ -130,11 +130,10 @@ void ActionHandler::createActions()
medit->addAction(deleteCommand, Core::Constants::G_EDIT_COPYPASTE);
d->deleteAction = deleteCommand->action();
d->selectAllAction = registerCommand(Core::Constants::SELECTALL, [this]() { selectAll(); })->action();
const std::function<void()> emptySlot;
registerCommand(Constants::ACTION_ADD_PACKAGE, emptySlot);
registerCommand(Constants::ACTION_ADD_COMPONENT, emptySlot);
registerCommand(Constants::ACTION_ADD_CLASS, emptySlot);
registerCommand(Constants::ACTION_ADD_CANVAS_DIAGRAM, emptySlot);
registerCommand(Constants::ACTION_ADD_PACKAGE, nullptr);
registerCommand(Constants::ACTION_ADD_COMPONENT, nullptr);
registerCommand(Constants::ACTION_ADD_CLASS, nullptr);
registerCommand(Constants::ACTION_ADD_CANVAS_DIAGRAM, nullptr);
}
void ActionHandler::createEditPropertiesShortcut(const Core::Id &shortcutId)
......
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