diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-12-09 16:07:38 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-12-10 14:55:38 -0300 |
commit | f917ca22a86fedf3b496970021d42477c2b926e4 (patch) | |
tree | af0fcf7f348c904d53ad8f1b46bd915821b297b6 /PySide/QtCore | |
parent | 942c774827f332aa2b7d4baa90cb614a438239cd (diff) |
Removed code injections of copyCppObject and toPython converter methods for QVariant and QString.
Converter<T>::copyCppObject and Converter<T>::toPython are not
needed anymore due to improvements in Shiboken generator.
Reviewed by Lauro Neto <lauro.neto@openbossa.org>
Diffstat (limited to 'PySide/QtCore')
-rw-r--r-- | PySide/QtCore/glue/qvariant_converter_impl.cpp | 10 | ||||
-rw-r--r-- | PySide/QtCore/qstring_conversions.h | 10 |
2 files changed, 0 insertions, 20 deletions
diff --git a/PySide/QtCore/glue/qvariant_converter_impl.cpp b/PySide/QtCore/glue/qvariant_converter_impl.cpp index bfead230c..6bf7159c2 100644 --- a/PySide/QtCore/glue/qvariant_converter_impl.cpp +++ b/PySide/QtCore/glue/qvariant_converter_impl.cpp @@ -35,16 +35,6 @@ bool Shiboken::Converter<QVariant>::isConvertible(PyObject* pyobj) return true; } -PyObject* Shiboken::Converter<QVariant>::toPython(const QVariant& cppobj) -{ - return Converter<QVariant>::createWrapper(new QVariant(cppobj)); -} - -QVariant* Shiboken::Converter<QVariant>::copyCppObject(const QVariant& cppobj) -{ - return new QVariant(cppobj); -} - QVariant Shiboken::Converter<QVariant>::toCpp(PyObject* pyobj) { if (SbkQVariant_Check(pyobj)) diff --git a/PySide/QtCore/qstring_conversions.h b/PySide/QtCore/qstring_conversions.h index 3265736fc..c580415be 100644 --- a/PySide/QtCore/qstring_conversions.h +++ b/PySide/QtCore/qstring_conversions.h @@ -7,16 +7,6 @@ inline bool Converter< QString >::isConvertible(PyObject* pyobj) || SbkQChar_Check(pyobj); } -inline QString* Converter<QString >::copyCppObject(const QString& cppobj) -{ - return new QString(cppobj); -} - -inline PyObject* Converter< QString >::toPython(const QString& cppobj) -{ - return Converter< QString >::createWrapper(new QString(cppobj)); -} - inline QString Converter< QString >::toCpp(PyObject* pyobj) { if (SbkQChar_Check(pyobj)) { |