aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libsample
diff options
context:
space:
mode:
authorFriedemann Kleint <[email protected]>2021-03-11 10:42:36 +0100
committerFriedemann Kleint <[email protected]>2021-03-11 15:19:42 +0100
commit146b3cb79c3f0927df3d7c5d9fdc9c67b976051d (patch)
treec2debab92f118f1da0fd4af05a3e72dc254c938a /sources/shiboken6/tests/libsample
parent7d602dc46163be603e87b1ef4f8db7b1ab87c1f6 (diff)
libpyside: Fix some clang analzyer warnings
- Use nullptr - Initialize variables - Remove else after return - Remove C-style casts - Avoid constructing QString from const char * - Use emit for signals Change-Id: I6ba8cad51f4b2a22f94996d1a9d8c3ae87c35099 Reviewed-by: Christian Tismer <[email protected]>
Diffstat (limited to 'sources/shiboken6/tests/libsample')
-rw-r--r--sources/shiboken6/tests/libsample/objecttype.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken6/tests/libsample/objecttype.cpp b/sources/shiboken6/tests/libsample/objecttype.cpp
index a0bf257b8..e5926d0c2 100644
--- a/sources/shiboken6/tests/libsample/objecttype.cpp
+++ b/sources/shiboken6/tests/libsample/objecttype.cpp
@@ -220,7 +220,7 @@ ObjectTypeLayout* ObjectType::takeLayout()
if (!l)
return nullptr;
m_layout = nullptr;
- l->setParent(0);
+ l->setParent(nullptr);
return l;
}