From d85979f269c08e80264c7da3ed94612067f4db05 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Thu, 17 Sep 2015 19:46:27 +0300 Subject: [PATCH] ModelEditor: Minor cleanup Replace a dummy local var with nullptr Change-Id: Ieea27fe894b141233b657a056cf3954f96649b03 Reviewed-by: Jochen Becher Reviewed-by: hjk --- src/plugins/modeleditor/actionhandler.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/plugins/modeleditor/actionhandler.cpp b/src/plugins/modeleditor/actionhandler.cpp index 13be8d43269..b2667fe474b 100644 --- a/src/plugins/modeleditor/actionhandler.cpp +++ b/src/plugins/modeleditor/actionhandler.cpp @@ -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 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)