summaryrefslogtreecommitdiff
path: root/sql/sql_list.h
diff options
context:
space:
mode:
authorunknown <monty@narttu.mysql.fi>2003-05-19 11:09:24 +0300
committerunknown <monty@narttu.mysql.fi>2003-05-19 11:09:24 +0300
commit6832b0a9c20338688667abe11185172d19289c19 (patch)
treeaea4a8fc60c6056c88f14a89865cda8771ed5abd /sql/sql_list.h
parent8178016caee8c98f017a8b8ce1b79802ce3c8231 (diff)
downloadmariadb-git-6832b0a9c20338688667abe11185172d19289c19.tar.gz
Add empty() function for baselist.
sql/mysqld.cc: Simple cleanup
Diffstat (limited to 'sql/sql_list.h')
-rw-r--r--sql/sql_list.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_list.h b/sql/sql_list.h
index 6eb4f98c011..f4cca627515 100644
--- a/sql/sql_list.h
+++ b/sql/sql_list.h
@@ -319,7 +319,8 @@ template <class T> class I_List_iterator;
class base_ilist {
public:
struct ilink *first,last;
- base_ilist() { first= &last; last.prev= &first; }
+ inline void empty() { first= &last; last.prev= &first; }
+ base_ilist() { empty(); }
inline bool is_empty() { return first == &last; }
inline void append(ilink *a)
{