diff options
| author | Greg Ercolano <erco@seriss.com> | 2022-11-07 10:59:19 -0800 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2022-11-07 10:59:19 -0800 |
| commit | 9605b82e08182faee283ef136de53bc7c7207a26 (patch) | |
| tree | f48aabfd3effaa765bc7d48a9745293cd3f8a8c5 /FL | |
| parent | 6f24175e64cd10e5cbabc01a1967b37c117a4a78 (diff) | |
Added missing const on some methods
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Int_Vector.H | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/FL/Fl_Int_Vector.H b/FL/Fl_Int_Vector.H index af1b77423..8fc0a23ad 100644 --- a/FL/Fl_Int_Vector.H +++ b/FL/Fl_Int_Vector.H @@ -120,7 +120,7 @@ public: } /** Return the number of integer elements in the array. */ - unsigned int size() { + unsigned int size() const { return size_; } @@ -150,7 +150,7 @@ public: \warning You must not call back() if the array is empty, i.e. if (size() == 0). \todo Internals should maybe assert(size_ != 0) */ - int back() { + int back() const { return arr_[size_ - 1]; } |
