forked from qt-creator/qt-creator
C++: changed the CppModelManager to use a normal singleton.
Also removed two TODOs. Change-Id: I91b235795da7e87a21782d189844eacdd68c5f3c Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -80,7 +80,7 @@ class CPPTOOLS_EXPORT CppModelManager : public CPlusPlus::CppModelManagerInterfa
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CppModelManager(QObject *parent);
|
||||
CppModelManager(QObject *parent = 0);
|
||||
virtual ~CppModelManager();
|
||||
|
||||
static CppModelManager *instance();
|
||||
@@ -192,6 +192,10 @@ private:
|
||||
CppPreprocessor *preproc,
|
||||
QStringList files);
|
||||
|
||||
private:
|
||||
static QMutex m_modelManagerMutex;
|
||||
static CppModelManager *m_modelManagerInstance;
|
||||
|
||||
private:
|
||||
CPlusPlus::Snapshot m_snapshot;
|
||||
|
||||
|
Reference in New Issue
Block a user