From 9995e9051982056b9705eed2d2a2cca78d4d3432 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Mon, 11 Dec 2023 16:13:22 +0100 Subject: [PATCH] Adapt QMutableHashIterator to change in QMultiHash QMultiHash doesn't inherit from QHash since Qt 6.0 so we can't use QMutableHashIterator anymore with QMultiHash. Pick-to: 6.5 Change-Id: I9e755899e0a1e331f452a618b6d8a127715c54d4 Reviewed-by: Thiago Macieira (cherry picked from commit 1c592199afa77247df84d66fc92a8455dd6ce988) Reviewed-by: Qt Cherry-pick Bot (cherry picked from commit 76d47dce1b61afca376578557aab18062f3c841e) --- src/corelib/tools/qiterator.qdoc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/corelib/tools/qiterator.qdoc b/src/corelib/tools/qiterator.qdoc index f84d1cb3bae..041fb0701d2 100644 --- a/src/corelib/tools/qiterator.qdoc +++ b/src/corelib/tools/qiterator.qdoc @@ -973,9 +973,8 @@ be preferred. QMutableHashIterator\ allows you to iterate over a QHash - (or a QMultiHash) and modify the hash. If you don't want to modify - the hash (or have a const QHash), use the slightly faster - QHashIterator instead. + and modify the hash. If you don't want to modify the hash (or have + a const QHash), use the slightly faster QHashIterator instead. The QMutableHashIterator constructor takes a QHash as argument. After construction, the iterator is located at the very beginning