diff options
author | hjk <hjk@qt.io> | 2017-12-15 15:46:37 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2017-12-18 15:39:51 +0000 |
commit | 479ab4ef22e8810f059307b9eca68b79893db7a4 (patch) | |
tree | 31a9eb3710868f2a2619576af949c97866c15c6b /src/plugins/cppeditor/cppquickfix.cpp | |
parent | 4ed12d95f83a50d6020270b85718b446604df7f2 (diff) | |
download | qt-creator-479ab4ef22e8810f059307b9eca68b79893db7a4.tar.gz |
TextEditor: Split the global QuickFixFactory list
It's only ever used in the filtered Cpp/QmlJs variants. Splitting
the class simplifies the code and avoids re-doing filtering over
and over again.
Also inline QuickFixFactory::matchingOperations() into callers
Change-Id: I730756315f2e0321649259ef229631233b12fbdd
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/cppquickfix.cpp')
-rw-r--r-- | src/plugins/cppeditor/cppquickfix.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/plugins/cppeditor/cppquickfix.cpp b/src/plugins/cppeditor/cppquickfix.cpp index 48d8170193..c91c4dccb8 100644 --- a/src/plugins/cppeditor/cppquickfix.cpp +++ b/src/plugins/cppeditor/cppquickfix.cpp @@ -29,8 +29,6 @@ #include <cpptools/cpprefactoringchanges.h> -#include <utils/algorithm.h> - using namespace CppEditor; using namespace CppEditor::Internal; using namespace CppTools; @@ -43,12 +41,3 @@ CppQuickFixOperation::CppQuickFixOperation(const CppQuickFixInterface &interface CppQuickFixOperation::~CppQuickFixOperation() {} - - -void CppQuickFixFactory::matchingOperations(const QuickFixInterface &interface, QuickFixOperations &result) -{ - auto cppInterface = interface.staticCast<const CppQuickFixInterface>(); - if (cppInterface->path().isEmpty()) - return; - match(*cppInterface, result); -} |