aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/generator/shiboken/shibokengenerator.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-12-02 15:14:35 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-12-03 15:52:45 +0000
commit2f7295a288c76b40e74bf9cd1c87c74379bd285c (patch)
tree8421d80533608b256232f42a6333b13cdb96b859 /sources/shiboken6/generator/shiboken/shibokengenerator.cpp
parent288fadb796ec4e11e99e3752d531ada7edf15d75 (diff)
shiboken6: Use a QSharedDataPointer for ArgumentModification
For reasons of consistency and header hygiene. As a drive by, remove unused argument modification replace-value. Change-Id: I44d0a244c89f2bf10242544111d23e072df3b480 Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken6/generator/shiboken/shibokengenerator.cpp')
-rw-r--r--sources/shiboken6/generator/shiboken/shibokengenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken6/generator/shiboken/shibokengenerator.cpp b/sources/shiboken6/generator/shiboken/shibokengenerator.cpp
index 8d8483c6b..510b20ae8 100644
--- a/sources/shiboken6/generator/shiboken/shibokengenerator.cpp
+++ b/sources/shiboken6/generator/shiboken/shibokengenerator.cpp
@@ -651,7 +651,7 @@ bool ShibokenGenerator::shouldRejectNullPointerArgument(const AbstractMetaFuncti
return false;
for (const auto &funcMod : func->modifications()) {
for (const ArgumentModification &argMod : funcMod.argument_mods()) {
- if (argMod.index == argIndex + 1 && argMod.noNullPointers)
+ if (argMod.index() == argIndex + 1 && argMod.noNullPointers())
return true;
}
}