From c52a54ef4341c2435044d872aa3e1da61ca1d044 Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Wed, 13 Aug 2014 11:57:37 -0500 Subject: [PATCH] Fix for gcc type qualifier warnings. With -Wall -Wextra -Werror, it is not possible to compile against imgui.h due to const correctness violation in ImVector. --- imgui.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imgui.h b/imgui.h index a1e2c87b..e22f4740 100644 --- a/imgui.h +++ b/imgui.h @@ -85,9 +85,9 @@ public: inline void clear() { if (_data) { _size = _capacity = 0; free(_data); _data = NULL; } } inline iterator begin() { return _data; } - inline const iterator begin() const { return _data; } + inline const_iterator begin() const { return _data; } inline iterator end() { return _data + _size; } - inline const iterator end() const { return _data + _size; } + inline const_iterator end() const { return _data + _size; } inline value_type& front() { return at(0); } inline const value_type& front() const { return at(0); } inline value_type& back() { IM_ASSERT(_size > 0); return at(_size-1); }