1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-15 18:39:51 +00:00

Constify some RecordListT methods

This commit is contained in:
Chris Robinson 2012-07-11 06:39:03 -07:00
parent 8e324c90dc
commit 7e8c146de6

View File

@ -114,17 +114,13 @@ public:
list[i].post(nif); list[i].post(nif);
} }
X& operator[](size_t index) X& operator[](size_t index) const
{ { return list.at(index).get(); }
return list.at(index).get();
}
bool has(size_t index) bool has(size_t index) const
{ { return !list.at(index).empty(); }
return !list.at(index).empty();
}
size_t length() size_t length() const
{ return list.size(); } { return list.size(); }
}; };