mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 11:45:36 +02:00
added default case for switch statements
which avoids warnings about unhandled enum values
This commit is contained in:
parent
2fdfb125f2
commit
51dca12a7b
1 changed files with 4 additions and 0 deletions
|
@ -71,6 +71,8 @@ QScriptValue XMLHttpRequestClass::getStatus() const {
|
|||
return QScriptValue(408);
|
||||
case QNetworkReply::ContentOperationNotPermittedError:
|
||||
return QScriptValue(501);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
return QScriptValue(0);
|
||||
|
@ -92,6 +94,8 @@ QString XMLHttpRequestClass::getStatusText() const {
|
|||
return "Timeout";
|
||||
case QNetworkReply::ContentOperationNotPermittedError:
|
||||
return "Not Implemented";
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
return "";
|
||||
|
|
Loading…
Reference in a new issue