forked from qt-creator/qt-creator
AutoTest: Modernize code
* remove unnecessary QLatin1String where possible * foreach * nullptr * bad naming of static members Change-Id: If0f7c6839be4d2efbfef6f7f0775d2034775bd90 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
using namespace Autotest::Internal;
|
||||
using namespace Core;
|
||||
|
||||
static AutotestPlugin *m_instance = 0;
|
||||
static AutotestPlugin *s_instance = nullptr;
|
||||
|
||||
AutotestPlugin::AutotestPlugin()
|
||||
: m_settings(new TestSettings)
|
||||
@@ -73,7 +73,7 @@ AutotestPlugin::AutotestPlugin()
|
||||
qRegisterMetaType<TestTreeItem *>();
|
||||
qRegisterMetaType<TestCodeLocationAndType>();
|
||||
|
||||
m_instance = this;
|
||||
s_instance = this;
|
||||
}
|
||||
|
||||
AutotestPlugin::~AutotestPlugin()
|
||||
@@ -83,7 +83,7 @@ AutotestPlugin::~AutotestPlugin()
|
||||
|
||||
AutotestPlugin *AutotestPlugin::instance()
|
||||
{
|
||||
return m_instance;
|
||||
return s_instance;
|
||||
}
|
||||
|
||||
QSharedPointer<TestSettings> AutotestPlugin::settings() const
|
||||
|
||||
Reference in New Issue
Block a user