X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3d8daa0fb9c617c1f1fc52ebde2a2bf0bbd0951c..229653c99e1d679aab15772a4a25909ca52c4d94:/src/common/variant.cpp diff --git a/src/common/variant.cpp b/src/common/variant.cpp index 894c1cf9aa..defe41807f 100644 --- a/src/common/variant.cpp +++ b/src/common/variant.cpp @@ -1390,6 +1390,7 @@ wxVariant::wxVariant(const wxArrayString& val, const wxString& name) // Strings } wxVariant::wxVariant(const wxVariant& variant) + : wxObject() { if (!variant.IsNull()) { @@ -2053,6 +2054,12 @@ wxStringList& wxVariant::GetStringList() const return (wxStringList&) ((wxVariantDataStringList*) m_data)->GetValue(); } +// Make empty list +void wxVariant::NullList() +{ + SetData(new wxVariantDataList()); +}; + // Append to list void wxVariant::Append(const wxVariant& value) {