diff options
author | unknown <monty@narttu.mysql.fi> | 2003-05-19 11:09:24 +0300 |
---|---|---|
committer | unknown <monty@narttu.mysql.fi> | 2003-05-19 11:09:24 +0300 |
commit | 6832b0a9c20338688667abe11185172d19289c19 (patch) | |
tree | aea4a8fc60c6056c88f14a89865cda8771ed5abd /sql/sql_list.h | |
parent | 8178016caee8c98f017a8b8ce1b79802ce3c8231 (diff) | |
download | mariadb-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.h | 3 |
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) { |