diff --git a/src/App/Property.h b/src/App/Property.h index dd7d879eea..058a036f35 100644 --- a/src/App/Property.h +++ b/src/App/Property.h @@ -550,24 +550,31 @@ public: protected: - void setPyValues(const std::vector &vals, const std::vector &indices) override + void setPyValues(const std::vector& vals, const std::vector& indices) override { + int i = 0; if (indices.empty()) { - ListT values; + ListT values {}; values.resize(vals.size()); - for (std::size_t i=0,count=vals.size();i