From e5cb0aeef3f5be28ff24e7a0287ac178cb4dde71 Mon Sep 17 00:00:00 2001 From: Ding Li Date: Sat, 28 Jul 2018 21:27:31 +0800 Subject: [PATCH] UIElement uses HashSet instead of Set as parent --- UI/UIElement.mqh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UI/UIElement.mqh b/UI/UIElement.mqh index 27f47c3..3767f6c 100644 --- a/UI/UIElement.mqh +++ b/UI/UIElement.mqh @@ -6,18 +6,18 @@ #property strict #include "../Lang/String.mqh" -#include "../Collection/Set.mqh" +#include "../Collection/HashSet.mqh" //+------------------------------------------------------------------+ //| Form a heirarchy for elements | //+------------------------------------------------------------------+ -class UIElement: public Set +class UIElement: public HashSet { private: UIElement *m_parent; string m_name; public: UIElement(UIElement *parent,string name) - :m_parent(parent),m_name(m_parent==NULL?name:m_parent.getName()+"."+name){} + :HashSet(NULL,true),m_parent(parent),m_name(m_parent==NULL?name:m_parent.getName()+"."+name){} string getName() const {return m_name;} UIElement *getParent() const {return m_parent;}