Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2022-07-28 21:43:51 +0300
committerJulian Eisel <julian@blender.org>2022-07-28 21:45:28 +0300
commitd094a3722c9c00a3d32a66f1f0fffa12619630a8 (patch)
treef3b14d078281a0392876e0af4bf3b7986da94f4e /source/blender/blenlib/BLI_set.hh
parent9c65af2df0bfb50ec6369b2344d9b9e691397f0d (diff)
Fix wrong post-increment operators & test for BLI containers
Diffstat (limited to 'source/blender/blenlib/BLI_set.hh')
-rw-r--r--source/blender/blenlib/BLI_set.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_set.hh b/source/blender/blenlib/BLI_set.hh
index 62de4b79e41..a1b6ad9754e 100644
--- a/source/blender/blenlib/BLI_set.hh
+++ b/source/blender/blenlib/BLI_set.hh
@@ -427,10 +427,10 @@ class Set {
return *this;
}
- Iterator operator++(int) const
+ Iterator operator++(int)
{
Iterator copied_iterator = *this;
- ++copied_iterator;
+ ++(*this);
return copied_iterator;
}