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:
parent
523d5d049f
commit
9eda5bad44
@ -154,9 +154,7 @@ public:
|
||||
m_data[index] *= factor;
|
||||
}
|
||||
|
||||
|
||||
|
||||
const std::vector<T>& getData() {
|
||||
const std::vector<T>& getData() const {
|
||||
return m_data;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user