diff options
author | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2016-02-02 18:26:51 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2016-02-03 08:29:08 +0000 |
commit | f4296d7504e87d291232bc13caa99a439d2393ab (patch) | |
tree | 66892ae3ded5333a7036401031effaf228921d3a /src/plugins/projectexplorer/outputparser_test.h | |
parent | 6a3e687d140cad3dec006b2d5fa8982d4b10f31c (diff) | |
download | qt-creator-f4296d7504e87d291232bc13caa99a439d2393ab.tar.gz |
ProjectExplorer: Modernize
* Use override where appropriate
* Use pragma once
* Make more constructors explicit
Change-Id: I2865fe10f288e3de570826058e43b70a0cb4ee37
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/projectexplorer/outputparser_test.h')
-rw-r--r-- | src/plugins/projectexplorer/outputparser_test.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/plugins/projectexplorer/outputparser_test.h b/src/plugins/projectexplorer/outputparser_test.h index 99e1d0c0c8..630767669b 100644 --- a/src/plugins/projectexplorer/outputparser_test.h +++ b/src/plugins/projectexplorer/outputparser_test.h @@ -23,8 +23,7 @@ ** ****************************************************************************/ -#ifndef OUTPUTPARSER_TESTER_H -#define OUTPUTPARSER_TESTER_H +#pragma once #if defined(WITH_TESTS) @@ -63,14 +62,14 @@ public: void setDebugEnabled(bool); - void appendOutputParser(IOutputParser *parser); + void appendOutputParser(IOutputParser *parser) override; signals: void aboutToDeleteParser(); private: - void outputAdded(const QString &string, ProjectExplorer::BuildStep::OutputFormat format); - void taskAdded(const ProjectExplorer::Task &task, int linkedLines, int skipLines); + void outputAdded(const QString &string, ProjectExplorer::BuildStep::OutputFormat format) override; + void taskAdded(const ProjectExplorer::Task &task, int linkedLines, int skipLines) override; void reset(); @@ -91,8 +90,8 @@ class TestTerminator : public IOutputParser public: TestTerminator(OutputParserTester *t); - void stdOutput(const QString &line); - void stdError(const QString &line); + void stdOutput(const QString &line) override; + void stdError(const QString &line) override; private: OutputParserTester *m_tester; @@ -103,5 +102,3 @@ private: Q_DECLARE_METATYPE(ProjectExplorer::OutputParserTester::Channel) #endif - -#endif // OUTPUTPARSER_TESTER_H |