Merge pull request #485 from colugomusic/fix-array-const
Fix constness of Array::find, Array::find_last and Array::rfind
This commit is contained in:
@@ -104,9 +104,9 @@ public:
|
||||
|
||||
Variant back() const;
|
||||
|
||||
int find(const Variant &what, const int from = 0);
|
||||
int find(const Variant &what, const int from = 0) const;
|
||||
|
||||
int find_last(const Variant &what);
|
||||
int find_last(const Variant &what) const;
|
||||
|
||||
bool has(const Variant &what) const;
|
||||
|
||||
@@ -132,7 +132,7 @@ public:
|
||||
|
||||
void resize(const int size);
|
||||
|
||||
int rfind(const Variant &what, const int from = -1);
|
||||
int rfind(const Variant &what, const int from = -1) const;
|
||||
|
||||
void sort();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user