diff options
author | Kent Hansen <kent.hansen@nokia.com> | 2010-02-18 11:36:32 (GMT) |
---|---|---|
committer | Kent Hansen <kent.hansen@nokia.com> | 2010-02-18 16:35:34 (GMT) |
commit | 0cad410d78758c79126d15664ec3d527883a9496 (patch) | |
tree | 8aaad705cd01e13755667d9edf2e13e75ec983fb /src/script/api/qscriptengine_p.h | |
parent | c86e7dfb0f6bcc0821ece5cf42a793d164d3f7a2 (diff) | |
download | Qt-0cad410d78758c79126d15664ec3d527883a9496.zip Qt-0cad410d78758c79126d15664ec3d527883a9496.tar.gz Qt-0cad410d78758c79126d15664ec3d527883a9496.tar.bz2 |
Cleanup: Move number conversion functions to QScriptEnginePrivate
Also rename ToUint{16,32} to ToUInt{16,32} to follow the Qt
naming (it takes precedence over the ECMA one).
Reviewed-by: Jedrzej Nowacki
Diffstat (limited to 'src/script/api/qscriptengine_p.h')
-rw-r--r-- | src/script/api/qscriptengine_p.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/script/api/qscriptengine_p.h b/src/script/api/qscriptengine_p.h index 9a357e5..f55dc27 100644 --- a/src/script/api/qscriptengine_p.h +++ b/src/script/api/qscriptengine_p.h @@ -83,6 +83,11 @@ namespace QScript #endif class TimeoutCheckerProxy; + qint32 ToInt32(qsreal); + quint32 ToUInt32(qsreal); + quint16 ToUInt16(qsreal); + qsreal ToInteger(qsreal); + //some conversion helper functions inline QScriptEnginePrivate *scriptEngineFromExec(const JSC::ExecState *exec); bool isFunction(JSC::JSValue value); |