mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +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);
|
return QScriptValue(408);
|
||||||
case QNetworkReply::ContentOperationNotPermittedError:
|
case QNetworkReply::ContentOperationNotPermittedError:
|
||||||
return QScriptValue(501);
|
return QScriptValue(501);
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return QScriptValue(0);
|
return QScriptValue(0);
|
||||||
|
@ -92,6 +94,8 @@ QString XMLHttpRequestClass::getStatusText() const {
|
||||||
return "Timeout";
|
return "Timeout";
|
||||||
case QNetworkReply::ContentOperationNotPermittedError:
|
case QNetworkReply::ContentOperationNotPermittedError:
|
||||||
return "Not Implemented";
|
return "Not Implemented";
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
|
|
Loading…
Reference in a new issue