aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/modeleditor/actionhandler.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2015-09-17 19:46:27 +0300
committerOrgad Shaneh <orgads@gmail.com>2015-09-18 06:59:09 +0000
commitd85979f269c08e80264c7da3ed94612067f4db05 (patch)
tree47bd7bc4a82b72d519882731b49ea41819d12aef /src/plugins/modeleditor/actionhandler.cpp
parent41e5c750fd8606b79d4bb6b5e9c53263c6a08066 (diff)
ModelEditor: Minor cleanup
Replace a dummy local var with nullptr Change-Id: Ieea27fe894b141233b657a056cf3954f96649b03 Reviewed-by: Jochen Becher <jochen_becher@gmx.de> Reviewed-by: hjk <hjk@theqtcompany.com>
Diffstat (limited to 'src/plugins/modeleditor/actionhandler.cpp')
-rw-r--r--src/plugins/modeleditor/actionhandler.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/plugins/modeleditor/actionhandler.cpp b/src/plugins/modeleditor/actionhandler.cpp
index 13be8d4326..b2667fe474 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<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)