forked from qt-creator/qt-creator
AutoTest: Access plugin singleton through static functions
It's the more common pattern nowadays, and cheaper. Change-Id: If6217b2a820fbfa6f088fd9349225f5f8488f593 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -87,14 +87,9 @@ AutotestPlugin::~AutotestPlugin()
|
||||
delete m_frameworkManager;
|
||||
}
|
||||
|
||||
AutotestPlugin *AutotestPlugin::instance()
|
||||
QSharedPointer<TestSettings> AutotestPlugin::settings()
|
||||
{
|
||||
return s_instance;
|
||||
}
|
||||
|
||||
QSharedPointer<TestSettings> AutotestPlugin::settings() const
|
||||
{
|
||||
return m_settings;
|
||||
return s_instance->m_settings;
|
||||
}
|
||||
|
||||
void AutotestPlugin::initializeMenuEntries()
|
||||
|
||||
Reference in New Issue
Block a user