aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/libshiboken/sbkconverter_p.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-09-13 13:34:21 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-09-13 23:12:38 +0200
commite55c87131a66e1cd11b13663b66582412cd38788 (patch)
treeac1e0d801502cd016fa0ba564bf54a2e623a0415 /sources/shiboken6/libshiboken/sbkconverter_p.h
parent009bc0f4bee5a39e08aaae6ef31c17e30f58bf91 (diff)
Remove some C-style casts
Change-Id: Ib600eff6f4a2baa32dbda781c0c95286e9ba5c58 Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken6/libshiboken/sbkconverter_p.h')
-rw-r--r--sources/shiboken6/libshiboken/sbkconverter_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken6/libshiboken/sbkconverter_p.h b/sources/shiboken6/libshiboken/sbkconverter_p.h
index 98f39bfea..3a1689d93 100644
--- a/sources/shiboken6/libshiboken/sbkconverter_p.h
+++ b/sources/shiboken6/libshiboken/sbkconverter_p.h
@@ -465,7 +465,7 @@ struct Primitive<const char *> : TwoPrimitive<const char *>
}
static void toCpp(PyObject *, void *cppOut)
{
- *((const char **)cppOut) = nullptr;
+ *reinterpret_cast<const char **>(cppOut) = nullptr;
}
static PythonToCppFunc isConvertible(PyObject *pyIn)
{