aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/libpyside/pysideclassdecorator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/libpyside/pysideclassdecorator.cpp')
-rw-r--r--sources/pyside6/libpyside/pysideclassdecorator.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/sources/pyside6/libpyside/pysideclassdecorator.cpp b/sources/pyside6/libpyside/pysideclassdecorator.cpp
index 1085153d9..ec69c5fe7 100644
--- a/sources/pyside6/libpyside/pysideclassdecorator.cpp
+++ b/sources/pyside6/libpyside/pysideclassdecorator.cpp
@@ -7,10 +7,11 @@
#include "pysideqobject.h"
#include <basewrapper.h>
-#include <sbkcppstring.h>
+#include <sbkstring.h>
namespace PySide::ClassDecorator {
+DecoratorPrivate::DecoratorPrivate() noexcept = default;
DecoratorPrivate::~DecoratorPrivate() = default;
DecoratorPrivate *DecoratorPrivate::getPrivate(PyObject *o)
@@ -62,7 +63,7 @@ int StringDecoratorPrivate::convertToString(PyObject *self, PyObject *args)
if (PyUnicode_Check(arg)) {
auto *pData = DecoratorPrivate::get<StringDecoratorPrivate>(self);
result = 0;
- Shiboken::String::toCppString(arg, &(pData->m_string));
+ pData->m_string.assign(Shiboken::String::toCString(arg));
}
}
return result;