diff options
author | Friedemann Kleint <[email protected]> | 2021-03-11 10:42:36 +0100 |
---|---|---|
committer | Friedemann Kleint <[email protected]> | 2021-03-11 15:19:42 +0100 |
commit | 146b3cb79c3f0927df3d7c5d9fdc9c67b976051d (patch) | |
tree | c2debab92f118f1da0fd4af05a3e72dc254c938a /sources/shiboken6/tests/libsample | |
parent | 7d602dc46163be603e87b1ef4f8db7b1ab87c1f6 (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.cpp | 2 |
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; } |