diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-10-22 15:09:04 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-10-23 10:18:24 (GMT) |
commit | 7bfa219ebd050523ecd0d72ad7154e1ce3b83ae9 (patch) | |
tree | 5fd85e56516ddebca9b9c15e3baaa8540cd76773 /src/script/api/qscriptstring.cpp | |
parent | 7e7b34fe5acab632c10814b591c80b0a9d613220 (diff) | |
download | Qt-7bfa219ebd050523ecd0d72ad7154e1ce3b83ae9.zip Qt-7bfa219ebd050523ecd0d72ad7154e1ce3b83ae9.tar.gz Qt-7bfa219ebd050523ecd0d72ad7154e1ce3b83ae9.tar.bz2 |
Use an inline helper function to check if a QScriptString is valid
Makes QScriptValue::property() ~10% faster.
Reviewed-by: Olivier Goffart
Diffstat (limited to 'src/script/api/qscriptstring.cpp')
-rw-r--r-- | src/script/api/qscriptstring.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/script/api/qscriptstring.cpp b/src/script/api/qscriptstring.cpp index 2fb157f..1ede51c 100644 --- a/src/script/api/qscriptstring.cpp +++ b/src/script/api/qscriptstring.cpp @@ -139,8 +139,7 @@ QScriptString &QScriptString::operator=(const QScriptString &other) */ bool QScriptString::isValid() const { - Q_D(const QScriptString); - return (d && d->engine); + return QScriptStringPrivate::isValid(*this); } /*! |