diff --git a/uppsrc/CtrlLib/SuggestCtrl.h b/uppsrc/CtrlLib/SuggestCtrl.h index 7e9404e72..c17164679 100644 --- a/uppsrc/CtrlLib/SuggestCtrl.h +++ b/uppsrc/CtrlLib/SuggestCtrl.h @@ -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& GetList() { return data; } void Pick(Vector&& list) { data = pick(list); }