From 35163715ead39eece619a5790903c88fa4216ec6 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 7 Apr 2015 13:16:24 +0200 Subject: loplugin:staticmethods Change-Id: Ie348778ea666c24e95e048386547f301083a0017 --- include/o3tl/enumarray.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/o3tl/enumarray.hxx') diff --git a/include/o3tl/enumarray.hxx b/include/o3tl/enumarray.hxx index 76fdec12f38b..777e205b8cf5 100644 --- a/include/o3tl/enumarray.hxx +++ b/include/o3tl/enumarray.hxx @@ -66,7 +66,7 @@ public: void fill(V val) { for (size_type i=0; i<=max_index; ++i) detail_values[i] = val; } - size_type size() const { return max_index + 1; } + static size_type size() { return max_index + 1; } iterator begin() { return iterator(*this, 0); } iterator end() { return iterator(*this, size()); } -- cgit