diff options
author | Christian Stenger <christian.stenger@qt.io> | 2017-02-13 10:05:06 +0100 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2017-02-17 08:01:36 +0000 |
commit | 23398229e9b947eb2370ca75604f71e7bdf1ccb4 (patch) | |
tree | f21eff8785c0b335d8760ee358ece3b918871baa /src/plugins/autotest/autotestplugin.cpp | |
parent | 085ac718d5de3d4bc069af1f4373647b48208c89 (diff) |
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>
Diffstat (limited to 'src/plugins/autotest/autotestplugin.cpp')
-rw-r--r-- | src/plugins/autotest/autotestplugin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/autotest/autotestplugin.cpp b/src/plugins/autotest/autotestplugin.cpp index b2af486369..226f0f26c6 100644 --- a/src/plugins/autotest/autotestplugin.cpp +++ b/src/plugins/autotest/autotestplugin.cpp @@ -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 |