diff options
Diffstat (limited to 'src/qml/compiler/qqmlirbuilder.cpp')
-rw-r--r-- | src/qml/compiler/qqmlirbuilder.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/qml/compiler/qqmlirbuilder.cpp b/src/qml/compiler/qqmlirbuilder.cpp index 8ed900e9e1..fbaf34abe1 100644 --- a/src/qml/compiler/qqmlirbuilder.cpp +++ b/src/qml/compiler/qqmlirbuilder.cpp @@ -483,8 +483,7 @@ QString IRBuilder::signalNameFromSignalPropertyName(const QString &signalPropert } } - Q_UNREACHABLE(); - return QString(); + Q_UNREACHABLE_RETURN(QString()); } bool IRBuilder::visit(QQmlJS::AST::UiArrayMemberList *ast) @@ -803,8 +802,7 @@ private: return Pragma::FunctionSignatureBehavior; } - Q_UNREACHABLE(); - return Pragma::PragmaType(-1); + Q_UNREACHABLE_RETURN(Pragma::PragmaType(-1)); } static bool assign(Pragma *pragma, QStringView value) @@ -869,8 +867,7 @@ private: default: break; } - Q_UNREACHABLE(); - return QLatin1StringView(); + Q_UNREACHABLE_RETURN(QLatin1StringView()); } }; |