Showing the changes to libraries/script-engine/src/WebSocketClass.cpp (1 of 63 files). Show all
Unified · Split
| @@ -208,22 +208,25 @@ ScriptValue qWSCloseCodeToScriptValue(ScriptEngine* engine, const QWebSocketProt · 207 unmodified lines | ||
| 208 | 208 | return engine->newValue(closeCode); |
| 209 | 209 | } |
| 210 | 210 | |
| 211 | −void qWSCloseCodeFromScriptValue(const ScriptValue &object, QWebSocketProtocol::CloseCode &closeCode) { | |
| 211 | +bool qWSCloseCodeFromScriptValue(const ScriptValue &object, QWebSocketProtocol::CloseCode &closeCode) { | |
| 212 | 212 | closeCode = (QWebSocketProtocol::CloseCode)object.toUInt16(); |
| 213 | + return true; | |
| 213 | 214 | } |
| 214 | 215 | |
| 215 | 216 | ScriptValue webSocketToScriptValue(ScriptEngine* engine, WebSocketClass* const &in) { |
| 216 | 217 | return engine->newQObject(in, ScriptEngine::ScriptOwnership); |
| 217 | 218 | } |
| 218 | 219 | |
| 219 | −void webSocketFromScriptValue(const ScriptValue &object, WebSocketClass* &out) { | |
| 220 | +bool webSocketFromScriptValue(const ScriptValue &object, WebSocketClass* &out) { | |
| 220 | 221 | out = qobject_cast<WebSocketClass*>(object.toQObject()); |
| 222 | + return true; | |
| 221 | 223 | } |
| 222 | 224 | |
| 223 | 225 | ScriptValue wscReadyStateToScriptValue(ScriptEngine* engine, const WebSocketClass::ReadyState& readyState) { |
| 224 | 226 | return engine->newValue(readyState); |
| 225 | 227 | } |
| 226 | 228 | |
| 227 | −void wscReadyStateFromScriptValue(const ScriptValue& object, WebSocketClass::ReadyState& readyState) { | |
| 229 | +bool wscReadyStateFromScriptValue(const ScriptValue& object, WebSocketClass::ReadyState& readyState) { | |
| 228 | 230 | readyState = (WebSocketClass::ReadyState)object.toUInt16(); |
| 231 | + return true; | |
| 229 | 232 | } |