aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2022-04-22 09:37:50 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-04-22 13:55:31 +0000
commitaf6a4afaef63fd95628ba5678c8e33e6aa3a05ae (patch)
tree7b17e030ae5caf8428941989205dee56f5536a0d
parentcf2a9172d765b06a126b0f719576b4c0c776318e (diff)
shiboken6: Use nullptr for pyArgs arrays
Task-number: QTBUG-98434 Change-Id: Iff7b7fcc844a34862a24bca04be7d650a38598da Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit a68386211d7a1142c1947287cb353eaeb732c997) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--sources/shiboken6/generator/shiboken/cppgenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken6/generator/shiboken/cppgenerator.cpp b/sources/shiboken6/generator/shiboken/cppgenerator.cpp
index 200cfb664..554167be3 100644
--- a/sources/shiboken6/generator/shiboken/cppgenerator.cpp
+++ b/sources/shiboken6/generator/shiboken/cppgenerator.cpp
@@ -2191,7 +2191,7 @@ void CppGenerator::writeArgumentsInitializer(TextStream &s, const OverloadData &
s << "PyObject *";
s << PYTHON_ARGS << "[] = {"
- << QString(maxArgs, QLatin1Char('0')).split(QLatin1String(""), Qt::SkipEmptyParts).join(QLatin1String(", "))
+ << QByteArrayList(maxArgs, "nullptr").join(", ")
<< "};\n\n";
if (overloadData.hasVarargs()) {