aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2024-09-07 12:52:48 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2024-09-09 09:28:33 +0200
commit9d992caec98de24ac3d649af6e37a50075f2a147 (patch)
tree372077de3f895323458304dd25d57e7c8b13f086 /sources/pyside6
parent9dca9a849466ec1e3f94a83ed69d76db48220eae (diff)
QFix compilation of QDirListing helper code
Use a sentinel for end, adapting to qtbase/089263fd4f1db201c98f4200cbb6ecdad8a437c3 . Task-number: PYSIDE-2620 Change-Id: If3f8d745b405e7c4e8d8c8d72ef4c2411b2d703e Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside6')
-rw-r--r--sources/pyside6/PySide6/QtCore/glue/qtcorehelper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/pyside6/PySide6/QtCore/glue/qtcorehelper.cpp b/sources/pyside6/PySide6/QtCore/glue/qtcorehelper.cpp
index 52e2f44c7..a56417acf 100644
--- a/sources/pyside6/PySide6/QtCore/glue/qtcorehelper.cpp
+++ b/sources/pyside6/PySide6/QtCore/glue/qtcorehelper.cpp
@@ -125,10 +125,10 @@ inline bool QDirListingIteratorPrivate::next()
{
switch (state) {
case First:
- state = iterator != QDirListing::const_iterator{} ? Iterating : End;
+ state = iterator != QDirListing::sentinel{} ? Iterating : End;
break;
case Iterating:
- if (++iterator == QDirListing::const_iterator{})
+ if (++iterator == QDirListing::sentinel{})
state = End;
break;
case End: