OSDN Git Service

mark the end of QStandardPaths::displayName() as unreachable
authorIvailo Monev <xakepa10@gmail.com>
Mon, 28 Dec 2020 14:57:57 +0000 (16:57 +0200)
committerIvailo Monev <xakepa10@gmail.com>
Mon, 28 Dec 2020 14:57:57 +0000 (16:57 +0200)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/core/io/qstandardpaths.cpp

index 55441fb..bd3f1ea 100644 (file)
@@ -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