aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/QtGui/glue/qlayout_help_functions.h
diff options
context:
space:
mode:
Diffstat (limited to 'PySide/QtGui/glue/qlayout_help_functions.h')
-rw-r--r--PySide/QtGui/glue/qlayout_help_functions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/PySide/QtGui/glue/qlayout_help_functions.h b/PySide/QtGui/glue/qlayout_help_functions.h
index e408dce06..41b315376 100644
--- a/PySide/QtGui/glue/qlayout_help_functions.h
+++ b/PySide/QtGui/glue/qlayout_help_functions.h
@@ -7,7 +7,7 @@ void removeLayoutOwnership(QLayout* layout, QWidget* widget);
inline QByteArray retrieveObjectName(PyObject* obj)
{
Shiboken::AutoDecRef objName(PyObject_Str(obj));
- return PyString_AsString(objName);
+ return Shiboken::String::toCString(objName);
}
inline void addLayoutOwnership(QLayout* layout, QWidget* widget)