diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-03-16 14:41:39 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-03-17 06:27:21 +0100 |
| commit | 71f584197063e907910653fa8bddcde617210544 (patch) | |
| tree | 3aa3a413c308b3fedd6218fc818f21df2193eaf8 /sources/pyside6/PySide6/glue/qtgui.cpp | |
| parent | b8a2baada13297a94e4c8a44dddf500f7d1f8e53 (diff) | |
Port code to use size() instead of count() of Qt containers
count() will be deprecated.
Fix some integer types in loops and modernize code
in changed lines.
Pick-to: 6.2
Change-Id: Idf21927661ea6c8866ee36e7c623043271e21620
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6/PySide6/glue/qtgui.cpp')
| -rw-r--r-- | sources/pyside6/PySide6/glue/qtgui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside6/PySide6/glue/qtgui.cpp b/sources/pyside6/PySide6/glue/qtgui.cpp index 16a10807a..f7bf2c57e 100644 --- a/sources/pyside6/PySide6/glue/qtgui.cpp +++ b/sources/pyside6/PySide6/glue/qtgui.cpp @@ -235,7 +235,7 @@ if (doc) { // @snippet qtextblock-userdata // @snippet qpolygon-reduce -const Py_ssize_t count = %CPPSELF.count(); +const Py_ssize_t count = %CPPSELF.size(); PyObject *points = PyList_New(count); for (Py_ssize_t i = 0; i < count; ++i){ int x, y; |
