diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-03-11 10:42:36 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-03-11 15:19:42 +0100 |
| commit | 146b3cb79c3f0927df3d7c5d9fdc9c67b976051d (patch) | |
| tree | c2debab92f118f1da0fd4af05a3e72dc254c938a /sources/pyside6/tests/pysidetest/testview.cpp | |
| 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 <tismer@stackless.com>
Diffstat (limited to 'sources/pyside6/tests/pysidetest/testview.cpp')
| -rw-r--r-- | sources/pyside6/tests/pysidetest/testview.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/pyside6/tests/pysidetest/testview.cpp b/sources/pyside6/tests/pysidetest/testview.cpp index 49e3730f5..110a87ac2 100644 --- a/sources/pyside6/tests/pysidetest/testview.cpp +++ b/sources/pyside6/tests/pysidetest/testview.cpp @@ -44,9 +44,9 @@ QWidget* TestView::getEditorWidgetFromItemDelegate() const { if (!m_delegate) - return 0; + return nullptr; QModelIndex index; QStyleOptionViewItem options; - return m_delegate->createEditor(0, options, index); + return m_delegate->createEditor(nullptr, options, index); } |
