From 1a8477e06eed82f2ea800e6928dee7e4c22ad178 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Wed, 1 Dec 2010 15:22:27 +0100 Subject: List::operator bool() should be const. --- common/list.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') diff --git a/common/list.h b/common/list.h index d15913d..cf429e5 100644 --- a/common/list.h +++ b/common/list.h @@ -25,7 +25,7 @@ class List : public B { } //! Check whether list is empty or not. - operator bool() { + operator bool() const { return !B::empty(); } -- cgit v1.2.3