From 523a85eeaa628d916c569a45c8f799bdb59db414 Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Tue, 29 Nov 2022 14:50:17 +0100 Subject: Fix two "could be override" warnings in tst_qqmlcomponent.cpp Change-Id: I05f991d27f6895805306ed610f0936965e7854e1 Reviewed-by: Fabian Kosmale --- tests/auto/qml/qqmlcomponent/tst_qqmlcomponent.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/auto/qml/qqmlcomponent') diff --git a/tests/auto/qml/qqmlcomponent/tst_qqmlcomponent.cpp b/tests/auto/qml/qqmlcomponent/tst_qqmlcomponent.cpp index 41cd2dd23f..f651249679 100644 --- a/tests/auto/qml/qqmlcomponent/tst_qqmlcomponent.cpp +++ b/tests/auto/qml/qqmlcomponent/tst_qqmlcomponent.cpp @@ -1331,8 +1331,8 @@ void tst_qqmlcomponent::loadFromModule() struct CallVerifyingIncubtor : QQmlIncubator { - void setInitialState(QObject *) { setInitialStateCalled = true; } - void statusChanged(QQmlIncubator::Status status) { lastStatus = status; } + void setInitialState(QObject *) override { setInitialStateCalled = true; } + void statusChanged(QQmlIncubator::Status status) override { lastStatus = status; } QQmlIncubator::Status lastStatus = QQmlIncubator::Null; bool setInitialStateCalled = false; -- cgit v1.2.3