forked from qt-creator/qt-creator
TextEditor: Use more direct access to quick fix factories
Change-Id: I65fc5c0ca6c7806e09b4bd626fd1679686df7d7f Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -29,6 +29,8 @@
|
||||
|
||||
#include <cpptools/cpprefactoringchanges.h>
|
||||
|
||||
#include <utils/algorithm.h>
|
||||
|
||||
using namespace CppEditor;
|
||||
using namespace CppEditor::Internal;
|
||||
using namespace CppTools;
|
||||
@@ -50,3 +52,10 @@ void CppQuickFixFactory::matchingOperations(const QuickFixInterface &interface,
|
||||
return;
|
||||
match(*cppInterface, result);
|
||||
}
|
||||
|
||||
QList<QuickFixFactory *> CppQuickFixFactory::cppQuickFixFactories()
|
||||
{
|
||||
return Utils::filtered(QuickFixFactory::allQuickFixFactories(), [](QuickFixFactory *f) {
|
||||
return qobject_cast<CppQuickFixFactory *>(f) != nullptr;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user