tst_moc: fix returning-reference-to-local warning

Although the code is never executed compilers still throw a warning
because it's compiled.

Amends 12b8283f899ebcf401d974927314b9531334a56e

Change-Id: Ib790d4bcb33c4b9f2a55a784b852275b59debde9
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
(cherry picked from commit 48931167fb5341dc26e27dae03b2112d83daa3b6)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Mårten Nordheim 2021-05-04 15:15:13 +02:00 committed by Qt Cherry-pick Bot
parent 4fd10b68d4
commit db1b88e516

View File

@ -43,12 +43,12 @@ public slots:
inline auto constRefReturn() -> const CXX11TrailingReturn &
{
return {};
return *this;
}
inline auto constConstRefReturn() const -> const CXX11TrailingReturn &
{
return {};
return *this;
}
signals: