mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-05 00:45:36 +00:00
Constify some RecordListT methods
This commit is contained in:
parent
8e324c90dc
commit
7e8c146de6
1 changed files with 5 additions and 9 deletions
|
@ -114,17 +114,13 @@ public:
|
|||
list[i].post(nif);
|
||||
}
|
||||
|
||||
X& operator[](size_t index)
|
||||
{
|
||||
return list.at(index).get();
|
||||
}
|
||||
X& operator[](size_t index) const
|
||||
{ return list.at(index).get(); }
|
||||
|
||||
bool has(size_t index)
|
||||
{
|
||||
return !list.at(index).empty();
|
||||
}
|
||||
bool has(size_t index) const
|
||||
{ return !list.at(index).empty(); }
|
||||
|
||||
size_t length()
|
||||
size_t length() const
|
||||
{ return list.size(); }
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue