aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/libshiboken/basewrapper_p.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2023-09-18 10:11:13 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-09-20 20:44:32 +0000
commit1cb937f294f21713874d0115606dcb980577eea0 (patch)
tree4375eff0e02d6aa8c1a0dfa06f28f2a168788e09 /sources/shiboken6/libshiboken/basewrapper_p.h
parentbf7ea7d24fe48433c59a35bb3f64d5eb102e0cc8 (diff)
libshiboken/libpyside: Fix some static analysis warnings
- nullptr - narrowing integer conversions - else after return - Use auto - Missing move special functions Change-Id: Ib872481a46c8bb17592cdc1778ab3c4d9598c753 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit b8f5e535dab255af228830c6d548ce730a7603d5) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 5591e683853595ae0ddf19834fcb98867653930d)
Diffstat (limited to 'sources/shiboken6/libshiboken/basewrapper_p.h')
-rw-r--r--sources/shiboken6/libshiboken/basewrapper_p.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/sources/shiboken6/libshiboken/basewrapper_p.h b/sources/shiboken6/libshiboken/basewrapper_p.h
index fc3cc321c..e59647aad 100644
--- a/sources/shiboken6/libshiboken/basewrapper_p.h
+++ b/sources/shiboken6/libshiboken/basewrapper_p.h
@@ -30,14 +30,12 @@ using ChildrenList = std::set<SbkObject *>;
/// Structure used to store information about object parent and children.
struct ParentInfo
{
- /// Default ctor.
- ParentInfo() : parent(nullptr), hasWrapperRef(false) {}
/// Pointer to parent object.
- SbkObject *parent;
+ SbkObject *parent = nullptr;
/// List of object children.
ChildrenList children;
/// has internal ref
- bool hasWrapperRef;
+ bool hasWrapperRef = false;
};
} // namespace Shiboken