mirror of
https://github.com/MariaDB/server.git
synced 2026-05-09 16:44:29 +02:00
Add empty() function for baselist.
sql/mysqld.cc: Simple cleanup
This commit is contained in:
parent
8178016cae
commit
6832b0a9c2
2 changed files with 4 additions and 9 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue