summaryrefslogtreecommitdiffstats
path: root/include/core/Array.hpp
diff options
context:
space:
mode:
authorColugo <colugomusic@gmail.com>2020-12-20 16:44:49 +0000
committerColugo <colugomusic@gmail.com>2020-12-20 16:53:40 +0000
commit38c9b624db45fd9f00515c28ed6c72edb913b980 (patch)
tree460112cc8c217afdecca2c2af1908824a27d12ff /include/core/Array.hpp
parent01c003dfed657c38cf81efddf9441f975020efc7 (diff)
downloadredot-cpp-38c9b624db45fd9f00515c28ed6c72edb913b980.tar.gz
Fix constness of Array::find, Array::find_last and Array::rfind
Diffstat (limited to 'include/core/Array.hpp')
-rw-r--r--include/core/Array.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/core/Array.hpp b/include/core/Array.hpp
index 3d13914..5227fea 100644
--- a/include/core/Array.hpp
+++ b/include/core/Array.hpp
@@ -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();