From c547f078e883c578996b6ff73643e122e17489db Mon Sep 17 00:00:00 2001 From: Ivan Komissarov Date: Sun, 24 Nov 2019 09:16:54 +0900 Subject: Apply 'modernize-use-equals-default' fix-it Change-Id: Iabdc777d2e8492d9903109365b0f3b1a5441ca11 Reviewed-by: Christian Kandeler --- tests/fuzzy-test/commandlineparser.cpp | 4 +--- tests/fuzzy-test/commandlineparser.h | 2 +- tests/fuzzy-test/fuzzytester.h | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) (limited to 'tests/fuzzy-test') diff --git a/tests/fuzzy-test/commandlineparser.cpp b/tests/fuzzy-test/commandlineparser.cpp index 18515604b..23be7b0ad 100644 --- a/tests/fuzzy-test/commandlineparser.cpp +++ b/tests/fuzzy-test/commandlineparser.cpp @@ -37,9 +37,7 @@ static QString maxDurationoption() { return "--max-duration"; } static QString jobCountOption() { return "--jobs"; } static QString logOption() { return "--log"; } -CommandLineParser::CommandLineParser() -{ -} +CommandLineParser::CommandLineParser() = default; void CommandLineParser::parse(const QStringList &commandLine) { diff --git a/tests/fuzzy-test/commandlineparser.h b/tests/fuzzy-test/commandlineparser.h index a000a515d..6dcbf84bc 100644 --- a/tests/fuzzy-test/commandlineparser.h +++ b/tests/fuzzy-test/commandlineparser.h @@ -36,7 +36,7 @@ class ParseException : public std::exception { public: ParseException(const QString &error) : errorMessage(error) { } - ~ParseException() throw() override {} + ~ParseException() throw() override = default; QString errorMessage; diff --git a/tests/fuzzy-test/fuzzytester.h b/tests/fuzzy-test/fuzzytester.h index 2d75bb1af..bc1fc5f18 100644 --- a/tests/fuzzy-test/fuzzytester.h +++ b/tests/fuzzy-test/fuzzytester.h @@ -36,7 +36,7 @@ class TestError { public: TestError(const QString &errorMessage) : errorMessage(errorMessage) {} - ~TestError() throw() {} + ~TestError() throw() = default; QString errorMessage; -- cgit v1.2.3