Fix strict compiler warning in C++ RNA

Hopefully it is supported by all the compilers.
This commit is contained in:
Sergey Sharybin 2017-05-30 10:54:28 +02:00
parent 6c16130356
commit fb82948043
Notes: blender-bot 2023-02-14 10:09:24 +01:00
Referenced by issue #51674, Osl works different in MacOs and Windows: attribute quering
Referenced by issue #51676, Crash unloading addon defining NodeCustomGroup while rendering
1 changed files with 1 additions and 1 deletions

View File

@ -3746,7 +3746,7 @@ static const char *cpp_classes = ""
"template<typename T, TBeginFunc Tbegin, TNextFunc Tnext, TEndFunc Tend>\n"
"class CollectionIterator {\n"
"public:\n"
" CollectionIterator() : t(iter.ptr), init(false) { iter.valid = false; }\n"
" CollectionIterator() : iter(), t(iter.ptr), init(false) { iter.valid = false; }\n"
" ~CollectionIterator(void) { if (init) Tend(&iter); };\n"
"\n"
" operator bool(void)\n"