diff options
author | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2016-02-03 17:21:12 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2016-02-04 10:44:54 +0000 |
commit | 063b9775a9d0404cae84417895ccb966750b5b55 (patch) | |
tree | d2ca74b7a50f170f9aa7565b65a8dd786a44e31f /src/plugins/autotoolsprojectmanager/autotoolsproject.h | |
parent | 9b3016c2e4b0214de41412e8c4f651de70d0bb0b (diff) | |
download | qt-creator-063b9775a9d0404cae84417895ccb966750b5b55.tar.gz |
Autotools: Modernize
* Use pragma once
* Make sure overrides are everywhere
* Clean up code here and there
* Remove useless code from initializer lists
Change-Id: I9c285a803ea36cb32d14b3335757fd4b57f27d02
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/autotoolsprojectmanager/autotoolsproject.h')
-rw-r--r-- | src/plugins/autotoolsprojectmanager/autotoolsproject.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/plugins/autotoolsprojectmanager/autotoolsproject.h b/src/plugins/autotoolsprojectmanager/autotoolsproject.h index f3d191b1ed..e43ee163e0 100644 --- a/src/plugins/autotoolsprojectmanager/autotoolsproject.h +++ b/src/plugins/autotoolsprojectmanager/autotoolsproject.h @@ -25,8 +25,7 @@ ** ****************************************************************************/ -#ifndef AUTOTOOLSPROJECT_H -#define AUTOTOOLSPROJECT_H +#pragma once #include <projectexplorer/project.h> @@ -41,7 +40,7 @@ namespace Utils { class FileSystemWatcher; } namespace ProjectExplorer { class Node; class FolderNode; -} +} // namespace ProjectExplorer namespace AutotoolsProjectManager { namespace Internal { @@ -76,7 +75,7 @@ public: protected: RestoreResult fromMap(const QVariantMap &map, QString *errorMessage) override; -private slots: +private: /** * Loads the project tree by parsing the makefiles. */ @@ -103,7 +102,6 @@ private slots: */ void onFileChanged(const QString &file); -private: /** * Creates folder-nodes and file-nodes for the project tree. */ @@ -128,7 +126,6 @@ private: */ void updateCppCodeModel(); -private: QString m_projectName; /// Return value for AutotoolsProject::files() @@ -139,12 +136,10 @@ private: QStringList m_watchedFiles; /// Responsible for parsing the makefiles asynchronously in a thread - MakefileParserThread *m_makefileParserThread; + MakefileParserThread *m_makefileParserThread = nullptr; QFuture<void> m_codeModelFuture; }; } // namespace Internal } // namespace AutotoolsProjectManager - -#endif // AUTOTOOLSPROJECT_H |