forked from qt-creator/qt-creator
CppTools: Change CppModelManager implementation pattern
Replace the CppModelManagerInterface/derived CppModelManager combo by a more common CppModelManager/CppModelManagerPrivate pimpl pattern. Change-Id: Ia4582845ed94d5ef60b8571bab9b2260c6290287 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
@@ -46,7 +46,7 @@ class SearchResult;
|
||||
} // namespace Core
|
||||
|
||||
namespace CppTools {
|
||||
class CppModelManagerInterface;
|
||||
class CppModelManager;
|
||||
|
||||
namespace Internal {
|
||||
|
||||
@@ -62,7 +62,7 @@ class CppFindReferences: public QObject
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CppFindReferences(CppModelManagerInterface *modelManager);
|
||||
CppFindReferences(CppModelManager *modelManager);
|
||||
virtual ~CppFindReferences();
|
||||
|
||||
QList<int> references(CPlusPlus::Symbol *symbol, const CPlusPlus::LookupContext &context) const;
|
||||
@@ -96,7 +96,7 @@ private:
|
||||
const CPlusPlus::Snapshot &snapshot, CPlusPlus::LookupContext *context);
|
||||
|
||||
private:
|
||||
QPointer<CppModelManagerInterface> m_modelManager;
|
||||
QPointer<CppModelManager> m_modelManager;
|
||||
QMap<QFutureWatcher<CPlusPlus::Usage> *, QPointer<Core::SearchResult> > m_watchers;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user