summaryrefslogtreecommitdiff
path: root/src/script/api/qscriptstring.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/api/qscriptstring.cpp')
-rw-r--r--src/script/api/qscriptstring.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/script/api/qscriptstring.cpp b/src/script/api/qscriptstring.cpp
index 89ac4ac9ef..ce38d81a42 100644
--- a/src/script/api/qscriptstring.cpp
+++ b/src/script/api/qscriptstring.cpp
@@ -138,7 +138,9 @@ bool QScriptString::isValid() const
bool QScriptString::operator==(const QScriptString &other) const
{
Q_D(const QScriptString);
- return (d == other.d_func());
+ // ### change back once proper string handles are implemented
+ return toString() == other.toString();
+// return (d == other.d_func());
}
/*!
@@ -148,7 +150,9 @@ bool QScriptString::operator==(const QScriptString &other) const
bool QScriptString::operator!=(const QScriptString &other) const
{
Q_D(const QScriptString);
- return (d != other.d_func());
+ // ### change back once proper string handles are implemented
+ return toString() != other.toString();
+// return (d != other.d_func());
}
/*!