From: Ivailo Monev Date: Mon, 28 Dec 2020 14:57:57 +0000 (+0200) Subject: mark the end of QStandardPaths::displayName() as unreachable X-Git-Tag: 4.12.0~2918 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=5ca2b6a2dcd4f2c96e2d0d51b547a260411ef3bf;p=kde%2FKatie.git mark the end of QStandardPaths::displayName() as unreachable Signed-off-by: Ivailo Monev --- diff --git a/src/core/io/qstandardpaths.cpp b/src/core/io/qstandardpaths.cpp index 55441fba5..bd3f1eabb 100644 --- a/src/core/io/qstandardpaths.cpp +++ b/src/core/io/qstandardpaths.cpp @@ -326,8 +326,7 @@ QString QStandardPaths::displayName(StandardLocation type) case DownloadLocation: return QCoreApplication::translate("QStandardPaths", "Download"); } - // not reached - return QString(); + Q_UNREACHABLE(); } QT_END_NAMESPACE