aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/QtCore/qstringref_conversions.h
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.lima@openbossa.org>2010-06-08 09:57:21 -0300
committerHugo Parente Lima <hugo.lima@openbossa.org>2010-06-10 14:57:42 -0300
commitccd189d30c284e9a67a802193ef05c4149108f9a (patch)
tree9cad80bbabd36375c7dac046b386cc599bf3f942 /PySide/QtCore/qstringref_conversions.h
parente39bfefde9edda662f51eeaf9a482f209c7f1217 (diff)
Add checkType method to PySide custom converters.
Diffstat (limited to 'PySide/QtCore/qstringref_conversions.h')
-rw-r--r--PySide/QtCore/qstringref_conversions.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/PySide/QtCore/qstringref_conversions.h b/PySide/QtCore/qstringref_conversions.h
index 11e1b9c62..db3eefcae 100644
--- a/PySide/QtCore/qstringref_conversions.h
+++ b/PySide/QtCore/qstringref_conversions.h
@@ -7,8 +7,7 @@ struct Converter<QStringRef> : public Converter<QString>
static PyObject* toPython(const QStringRef& cppObj)
{
- const QString* str = cppObj.string();
- return Converter<QString>::toPython(*str);
+ return Converter<QString>::toPython(cppObj.toString());
}
static QStringRef toCpp(PyObject* pyObj)