From 437c4735d1f40f827f86e17102e5cf24f74717c4 Mon Sep 17 00:00:00 2001 From: Lorenz Haas Date: Thu, 4 Jun 2015 17:34:15 +0200 Subject: [PATCH] Beautifier: Add DISPLAY_NAME constant to ClangFormat All ohter tools have this constant thus ClangFormat should have it too. Change-Id: I23b032e86291f2490d56ff937d70510bf2f41377 Reviewed-by: Jochen Becher Reviewed-by: David Schulz --- src/plugins/beautifier/clangformat/clangformat.cpp | 2 +- src/plugins/beautifier/clangformat/clangformatconstants.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/beautifier/clangformat/clangformat.cpp b/src/plugins/beautifier/clangformat/clangformat.cpp index fb04d0756ef..e277c86a317 100644 --- a/src/plugins/beautifier/clangformat/clangformat.cpp +++ b/src/plugins/beautifier/clangformat/clangformat.cpp @@ -72,7 +72,7 @@ ClangFormat::~ClangFormat() bool ClangFormat::initialize() { Core::ActionContainer *menu = Core::ActionManager::createMenu(Constants::ClangFormat::MENU_ID); - menu->menu()->setTitle(QLatin1String("ClangFormat")); + menu->menu()->setTitle(QLatin1String(Constants::ClangFormat::DISPLAY_NAME)); m_formatFile = new QAction(BeautifierPlugin::msgFormatCurrentFile(), this); Core::Command *cmd diff --git a/src/plugins/beautifier/clangformat/clangformatconstants.h b/src/plugins/beautifier/clangformat/clangformatconstants.h index a1c1f382f64..fb50e6bc001 100644 --- a/src/plugins/beautifier/clangformat/clangformatconstants.h +++ b/src/plugins/beautifier/clangformat/clangformatconstants.h @@ -35,6 +35,7 @@ namespace Beautifier { namespace Constants { namespace ClangFormat { +const char DISPLAY_NAME[] = "ClangFormat"; const char ACTION_FORMATFILE[] = "ClangFormat.FormatFile"; const char ACTION_FORMATSELECTED[] = "ClangFormat.FormatSelectedText"; const char MENU_ID[] = "ClangFormat.Menu";