summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-12-01 15:22:27 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-12-01 15:22:27 +0100
commit1a8477e06eed82f2ea800e6928dee7e4c22ad178 (patch)
tree4ab183f164eef4516c2b5a473ec2e3618a50c256
parentcbaa83a37db55af91ff9e68d8e470ef11c65f528 (diff)
List::operator bool() should be const.
-rw-r--r--common/list.h2
1 files changed, 1 insertions, 1 deletions
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();
}