diff options
author | hjk <hjk@qt.io> | 2018-08-13 09:34:47 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2018-08-13 08:42:52 +0000 |
commit | 1567679b8129d3066e086a16720d79d6403dbedc (patch) | |
tree | ca999bd1c87970ce525292dd7713fe9c03ac65b8 /src/plugins/clangtools | |
parent | 1d68e08359520c70065d583b0fc47fa339f3b61b (diff) | |
download | qt-creator-1567679b8129d3066e086a16720d79d6403dbedc.tar.gz |
Debugger: Tighten Perspective interface
Pass id in constructor, so it can be const.
Change-Id: Id33fe19c4416109af8aa05a3ed0a09918eeb5cdf
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/clangtools')
-rw-r--r-- | src/plugins/clangtools/clangtidyclazytool.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/clangtools/clangtidyclazytool.cpp b/src/plugins/clangtools/clangtidyclazytool.cpp index a96cf56dff..27d7fe171b 100644 --- a/src/plugins/clangtools/clangtidyclazytool.cpp +++ b/src/plugins/clangtools/clangtidyclazytool.cpp @@ -269,7 +269,7 @@ ClangTidyClazyTool::ClangTidyClazyTool() const QString toolTip = tr("Clang-Tidy and Clazy use a customized Clang executable from the " "Clang project to search for errors and warnings."); - auto perspective = new Perspective(tr("Clang-Tidy and Clazy")); + auto perspective = new Perspective(ClangTidyClazyPerspectiveId, tr("Clang-Tidy and Clazy")); perspective->addWindow(m_diagnosticView, Perspective::SplitVertical, nullptr); action = new QAction(tr("Clang-Tidy and Clazy..."), this); @@ -289,7 +289,7 @@ ClangTidyClazyTool::ClangTidyClazyTool() perspective->addToolbarWidget(m_filterLineEdit); perspective->addToolbarWidget(m_applyFixitsButton); - Debugger::registerPerspective(ClangTidyClazyPerspectiveId, perspective); + Debugger::registerPerspective(perspective); updateRunActions(); |