aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/libpysideqml/pysideqmlforeign.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/libpysideqml/pysideqmlforeign.cpp')
-rw-r--r--sources/pyside6/libpysideqml/pysideqmlforeign.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/pyside6/libpysideqml/pysideqmlforeign.cpp b/sources/pyside6/libpysideqml/pysideqmlforeign.cpp
index 18d39d121..90136f0aa 100644
--- a/sources/pyside6/libpysideqml/pysideqmlforeign.cpp
+++ b/sources/pyside6/libpysideqml/pysideqmlforeign.cpp
@@ -35,7 +35,7 @@ PyObject *PySideQmlForeignPrivate::tp_call(PyObject *self, PyObject *args, PyObj
info->foreignType = data->type();
// Insert an alias to be used by the factory functions of Decorators like
// @QmlExtended and @QmlAttached.
- auto *foreignObj = reinterpret_cast<const PyObject *>(info->foreignType);
+ const auto *foreignObj = reinterpret_cast<const PyObject *>(info->foreignType);
PySide::Qml::insertQmlTypeInfoAlias(foreignObj, info);
Py_INCREF(klass);
@@ -49,7 +49,7 @@ const char *PySideQmlForeignPrivate::name() const
extern "C" {
-static PyTypeObject *createPySideQmlForeignType(void)
+static PyTypeObject *createPySideQmlForeignType()
{
auto typeSlots =
PySide::ClassDecorator::Methods<PySideQmlForeignPrivate>::typeSlots();