diff options
Diffstat (limited to 'wx+/choice_enum.h')
-rwxr-xr-x | wx+/choice_enum.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/wx+/choice_enum.h b/wx+/choice_enum.h index a19e1457..6b2edd01 100755 --- a/wx+/choice_enum.h +++ b/wx+/choice_enum.h @@ -33,7 +33,6 @@ Update enum tooltips (after user changed selection): updateTooltipEnumVal(enumDescrMap, *m_choiceHandleError); */ - namespace zen { template <class Enum> @@ -41,7 +40,7 @@ struct EnumDescrList { EnumDescrList& add(Enum value, const wxString& text, const wxString& tooltip = {}) { - descrList.emplace_back(value, std::make_pair(text, tooltip)); + descrList.push_back({ value, { text, tooltip } }); return *this; } using DescrList = std::vector<std::pair<Enum, std::pair<wxString, wxString>>>; |