CtrlLib: SuggestCtrl fix

git-svn-id: svn://ultimatepp.org/upp/trunk@12093 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-07-24 06:30:01 +00:00
parent a7145cbcce
commit 43b7a97b58

View file

@ -25,10 +25,10 @@ public:
void ClearList() { data.Clear(); }
void AddList(const WString& s) { data.Add(s); }
void AddList(const String& s) { data.Add(s.ToWString()); }
void AddList(const char *s) { data.Add(s); }
void AddList(const char *s) { data.Add(String(s)); }
void FindAddList(const WString& s) { if(FindIndex(data,s) < 0) data.Add(s); }
void FindAddList(const String& s) { FindAddList(s.ToWString()); }
void FindAddList(const char *s) { FindAddList(s); }
void FindAddList(const char *s) { FindAddList(String(s)); }
const Vector<WString>& GetList() { return data; }
void Pick(Vector<WString>&& list) { data = pick(list); }