diff options
author | Mate Barany <[email protected]> | 2024-07-18 17:45:30 +0200 |
---|---|---|
committer | Mate Barany <[email protected]> | 2024-07-29 14:29:46 +0200 |
commit | 645f954d358117ebf1130ac9adc29b0835dad9d4 (patch) | |
tree | 58d671d3a683a41cca0c0a1b523511279288de93 | |
parent | 36aa5fc3fa361ecb6f7bb035c3cace3dd14735e0 (diff) |
Remove default case from QNetworkReplyHttpImplPrivate::convert
QNetworkRequest::Priority has three possible values and all of them
are handled already by the switch. The default label also disables
-Wswitch, so remove it.
Pick-to: 6.8 6.7 6.5
Change-Id: I971a41ef9cbce237f5ff6ae5d28408cbf612eae3
Reviewed-by: MÃ¥rten Nordheim <[email protected]>
-rw-r--r-- | src/network/access/qnetworkreplyhttpimpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/access/qnetworkreplyhttpimpl.cpp b/src/network/access/qnetworkreplyhttpimpl.cpp index 9af7f7cda39..b13e9296c89 100644 --- a/src/network/access/qnetworkreplyhttpimpl.cpp +++ b/src/network/access/qnetworkreplyhttpimpl.cpp @@ -620,9 +620,9 @@ QHttpNetworkRequest::Priority QNetworkReplyHttpImplPrivate::convert(QNetworkRequ case QNetworkRequest::HighPriority: return QHttpNetworkRequest::HighPriority; case QNetworkRequest::NormalPriority: - default: return QHttpNetworkRequest::NormalPriority; } + Q_UNREACHABLE_RETURN(QHttpNetworkRequest::NormalPriority); } void QNetworkReplyHttpImplPrivate::postRequest(const QNetworkRequest &newHttpRequest) |