summaryrefslogtreecommitdiff
path: root/sql/sql_plist.h
diff options
context:
space:
mode:
authorunknown <sanja@montyprogram.com>2013-11-11 23:40:53 +0200
committerunknown <sanja@montyprogram.com>2013-11-11 23:40:53 +0200
commit55de9b0468c65b7277b7ca6978f4e01c01af1206 (patch)
treea98623574e326aea7b4b16d768947ac24dc80962 /sql/sql_plist.h
parent383de0fd1f7b855276f5bec37f38de6dbf70e938 (diff)
parent3a75900b91ffb4d49396d8f83e0b55b392e83a2a (diff)
downloadmariadb-git-55de9b0468c65b7277b7ca6978f4e01c01af1206.tar.gz
merge 10-base->10.0
Diffstat (limited to 'sql/sql_plist.h')
-rw-r--r--sql/sql_plist.h5
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)