diff options
author | unknown <sanja@montyprogram.com> | 2013-11-11 23:40:53 +0200 |
---|---|---|
committer | unknown <sanja@montyprogram.com> | 2013-11-11 23:40:53 +0200 |
commit | 55de9b0468c65b7277b7ca6978f4e01c01af1206 (patch) | |
tree | a98623574e326aea7b4b16d768947ac24dc80962 /sql/sql_plist.h | |
parent | 383de0fd1f7b855276f5bec37f38de6dbf70e938 (diff) | |
parent | 3a75900b91ffb4d49396d8f83e0b55b392e83a2a (diff) | |
download | mariadb-git-55de9b0468c65b7277b7ca6978f4e01c01af1206.tar.gz |
merge 10-base->10.0
Diffstat (limited to 'sql/sql_plist.h')
-rw-r--r-- | sql/sql_plist.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_plist.h b/sql/sql_plist.h index 8e8c7fcaefb..df50cccc874 100644 --- a/sql/sql_plist.h +++ b/sql/sql_plist.h @@ -75,6 +75,11 @@ class I_P_List : public C, public I */ public: I_P_List() : I(&m_first), m_first(NULL) {}; + /* + empty() is used in many places in the code instead of a constructor, to + initialize a bzero-ed I_P_List instance. + */ + inline void empty() { m_first= NULL; C::reset(); I::set_last(&m_first); } inline bool is_empty() const { return (m_first == NULL); } inline void push_front(T* a) |