From cf822073113ae54b14994cb80af0cb8e786856c5 Mon Sep 17 00:00:00 2001 From: Ivan Komissarov Date: Thu, 2 May 2019 23:17:59 +0200 Subject: Apply fix-its for the missing override keyword Missing override is a warning in clang Change-Id: I90b899df37e690aebb942bffc65db54d9aa4050f Reviewed-by: Denis Shienkov Reviewed-by: Christian Kandeler --- tests/auto/api/tst_api.cpp | 4 ++-- tests/auto/api/tst_api.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/auto/api') diff --git a/tests/auto/api/tst_api.cpp b/tests/auto/api/tst_api.cpp index c998b81e8..6313827fa 100644 --- a/tests/auto/api/tst_api.cpp +++ b/tests/auto/api/tst_api.cpp @@ -66,11 +66,11 @@ class LogSink: public qbs::ILogSink public: QString output; - void doPrintWarning(const qbs::ErrorInfo &error) { + void doPrintWarning(const qbs::ErrorInfo &error) override { qDebug("%s", qPrintable(error.toString())); warnings.push_back(error); } - void doPrintMessage(qbs::LoggerLevel, const QString &message, const QString &) { + void doPrintMessage(qbs::LoggerLevel, const QString &message, const QString &) override { output += message; } diff --git a/tests/auto/api/tst_api.h b/tests/auto/api/tst_api.h index ff32c8634..c04e9feb0 100644 --- a/tests/auto/api/tst_api.h +++ b/tests/auto/api/tst_api.h @@ -50,7 +50,7 @@ class TestApi : public QObject public: TestApi(); - ~TestApi(); + ~TestApi() override; private slots: void initTestCase(); -- cgit v1.2.3