diff --git a/python/templates/macros/iterator.jinja2 b/python/templates/macros/iterator.jinja2 index 645c198e0..d3b512f94 100644 --- a/python/templates/macros/iterator.jinja2 +++ b/python/templates/macros/iterator.jinja2 @@ -33,9 +33,9 @@ public: {{ iterator_type }} operator++(int); private: - size_t m_index = 0; + size_t m_index{0}; {{ prefix }}{{ class.bare_type }} m_object { {{ ptr_init }} }; - const {{ class.bare_type }}ObjPointerContainer* m_collection = nullptr; + const {{ class.bare_type }}ObjPointerContainer* m_collection{nullptr}; }; {% endwith %} {% endmacro %}