Fix strict compiler warning in C++ RNA
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 30 May 2017 08:54:28 +0000 (10:54 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 30 May 2017 08:58:12 +0000 (10:58 +0200)
Hopefully it is supported by all the compilers.

source/blender/makesrna/intern/makesrna.c

index 9d68c05dda04c086e99c5e2222f0c40faa3f26f6..de436172bfdbaa818a3b5b9381027f8a0e5cc7c4 100644 (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"