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:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-11-02 19:54:06 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-11-02 19:58:59 +0300
commite0a6582b4008e5cb5757e2af7b3f8557ff53adff (patch)
tree5852efd91fdfb5cbe4432e27d274c41585ab88cf /source/blender/blenlib/BLI_iterator.h
parentd967a83f491dff1c3995a88ede972ffc71abed19 (diff)
Fix iterator usage from C++ code
Old code was not supported by GCC, see some details and progress https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55606
Diffstat (limited to 'source/blender/blenlib/BLI_iterator.h')
-rw-r--r--source/blender/blenlib/BLI_iterator.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/blenlib/BLI_iterator.h b/source/blender/blenlib/BLI_iterator.h
index 39d5cc12d87..dffdeec949a 100644
--- a/source/blender/blenlib/BLI_iterator.h
+++ b/source/blender/blenlib/BLI_iterator.h
@@ -41,9 +41,8 @@ typedef void (*IteratorBeginCb)(BLI_Iterator *iter, void *data_in);
{ \
_type _instance; \
IteratorCb callback_end_func = callback_end; \
- BLI_Iterator iter_macro = { \
- .skip = false, \
- }; \
+ BLI_Iterator iter_macro; \
+ iter_macro.skip = false; \
for (callback_begin(&iter_macro, (_data_in)); \
iter_macro.valid; \
callback_next(&iter_macro)) \