From 9605b82e08182faee283ef136de53bc7c7207a26 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Mon, 7 Nov 2022 10:59:19 -0800 Subject: Added missing const on some methods --- FL/Fl_Int_Vector.H | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'FL/Fl_Int_Vector.H') 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]; } -- cgit v1.2.3