diff options
author | Sami Shalayel <sami.shalayel@qt.io> | 2022-06-22 11:02:04 +0200 |
---|---|---|
committer | Sami Shalayel <sami.shalayel@qt.io> | 2022-06-27 13:16:19 +0200 |
commit | 4970a55635fdaace310432002a9cdc279187c75c (patch) | |
tree | bdb830f2a1c607bc2037ac69f52e254a58c7e76d /src/qml/jsruntime/qv4sparsearray_p.h | |
parent | 3ab408da5d1b16cf20d06a6eb70131bd85e9ca22 (diff) |
Silence MSVC warning in qv4sparsearray_p.h
Rename variable to not shadow another.
Fixes: QTBUG-104366
Change-Id: I6906ec6ded8fc19469fa1b1676d57d1082c5a01c
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4sparsearray_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4sparsearray_p.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qml/jsruntime/qv4sparsearray_p.h b/src/qml/jsruntime/qv4sparsearray_p.h index b48f107a93..db23c0af75 100644 --- a/src/qml/jsruntime/qv4sparsearray_p.h +++ b/src/qml/jsruntime/qv4sparsearray_p.h @@ -200,10 +200,10 @@ inline uint SparseArray::pop_front() idx = n->value; deleteNode(n); // adjust all size_left indices on the path to leftmost item by 1 - SparseArrayNode *n = root(); - while (n) { - n->size_left -= 1; - n = n->left; + SparseArrayNode *rootNode = root(); + while (rootNode) { + rootNode->size_left -= 1; + rootNode = rootNode->left; } } return idx; |