GridProperty: mark getData() as const

it returns a const reference to a vector which does not allow
manipulation of its members. the getData() can thus be safely called
on constant GridProperty objects.
This commit is contained in:
Andreas Lauser 2014-07-15 13:47:33 +02:00
parent 523d5d049f
commit 9eda5bad44

View File

@ -154,9 +154,7 @@ public:
m_data[index] *= factor;
}
const std::vector<T>& getData() {
const std::vector<T>& getData() const {
return m_data;
}