X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d84afea9d1ec41ee4e2ebb3bf6b87926cf5f04d1..217c78b80b34f31b4341d6257e28077255d6eb93:/src/common/variant.cpp diff --git a/src/common/variant.cpp b/src/common/variant.cpp index abbd2de6e5..defe41807f 100644 --- a/src/common/variant.cpp +++ b/src/common/variant.cpp @@ -2054,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) {