diff options
author | hjk <qthjk@ovi.com> | 2012-10-10 23:27:16 +0200 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2012-11-07 14:29:11 +0100 |
commit | 438e4af735afd95119226c576b2af606afa2cf03 (patch) | |
tree | 188452be42a54405ecc9c472555d97aacf37596f /src/plugins/texteditor/quickfix.h | |
parent | 9f38f7bfbc19a0a94c69f95bd8ad5ac2a8471df9 (diff) | |
download | qt-creator-438e4af735afd95119226c576b2af606afa2cf03.tar.gz |
CppEditor: simplify CppQuickFixOperation interface
Change-Id: Ib3ed82c7f07f80027b18471ffb7b3055fa74eb52
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'src/plugins/texteditor/quickfix.h')
-rw-r--r-- | src/plugins/texteditor/quickfix.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/plugins/texteditor/quickfix.h b/src/plugins/texteditor/quickfix.h index 7685541b1f..1993535f7d 100644 --- a/src/plugins/texteditor/quickfix.h +++ b/src/plugins/texteditor/quickfix.h @@ -90,6 +90,9 @@ private: QString _description; }; +typedef QList<QuickFixOperation::Ptr> QuickFixOperations; +typedef QSharedPointer<const IAssistInterface> QuickFixInterface; + /*! The QuickFixFactory is responsible for generating QuickFixOperation s which are applicable to the given QuickFixState. @@ -107,10 +110,9 @@ class TEXTEDITOR_EXPORT QuickFixFactory: public QObject public: QuickFixFactory(QObject *parent = 0); - virtual ~QuickFixFactory(); + ~QuickFixFactory(); - virtual QList<QuickFixOperation::Ptr> - matchingOperations(const QSharedPointer<const IAssistInterface> &interface) = 0; + virtual void matchingOperations(const QuickFixInterface &interface, QuickFixOperations &result) = 0; }; } // namespace TextEditor |