diff options
Diffstat (limited to 'PySide/typesystem_templates.xml')
-rw-r--r-- | PySide/typesystem_templates.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/PySide/typesystem_templates.xml b/PySide/typesystem_templates.xml index a35602f72..c985fb24a 100644 --- a/PySide/typesystem_templates.xml +++ b/PySide/typesystem_templates.xml @@ -256,7 +256,7 @@ <!-- templates for __repr__ --> <template name="repr_code"> QString format = QString().sprintf("%s(%REPR_FORMAT)", ((PyObject*)%PYSELF)->ob_type->tp_name, %REPR_ARGS); - %PYARG_0 = PyString_FromString(qPrintable(format)); + %PYARG_0 = Shiboken::String::fromCString(qPrintable(format)); </template> <template name="repr_code_matrix"> QString format= QString("%1((").arg(((PyObject*)%PYSELF)->ob_type->tp_name); @@ -272,7 +272,7 @@ } format += "))"; - %PYARG_0 = PyString_FromString(qPrintable(format)); + %PYARG_0 = Shiboken::String::fromCString(qPrintable(format)); </template> <template name="return_internal_pointer"> |