Don't over promise in wxItemContainer documentation

It only accepts std::vector<wxString>, not std::vector<T> for any type
convertible to wxString as both the documentation and the code misleadingly
claimed.
This commit is contained in:
Vadim Zeitlin
2017-01-14 00:23:12 +01:00
parent 1f56389e8b
commit da36cbff06
3 changed files with 8 additions and 27 deletions

View File

@@ -479,9 +479,8 @@ public:
}
#if wxUSE_STD_CONTAINERS_COMPATIBLY
// construct an adapter from a vector of strings (of any type)
template <class T>
wxArrayStringsAdapter(const std::vector<T>& strings)
// construct an adapter from a vector of strings
wxArrayStringsAdapter(const std::vector<wxString>& strings)
: m_type(wxSTRING_POINTER), m_size(strings.size())
{
m_data.ptr = &strings[0];