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

@@ -259,14 +259,9 @@ public:
This is the same as the overload taking wxArrayString, except that it
works with the standard vector container.
The template argument @c T can be any type convertible to wxString,
including wxString itself but also @c std::string, @c char* or @c
wchar_t*.
@since 3.1.0
*/
template <typename T>
int Append(const std::vector<T>& items);
int Append(const std::vector<wxString>& items);
/**
Appends several items at once into the control.
@@ -541,14 +536,9 @@ public:
This is the same as the overload taking wxArrayString, except that it
works with the standard vector container.
The template argument @c T can be any type convertible to wxString,
including wxString itself but also @c std::string, @c char* or @c
wchar_t*.
@since 3.1.0
*/
template <typename T>
int Insert(const std::vector<T>& items);
int Insert(const std::vector<wxString>& items);
/**
Inserts several items at once into the control.
@@ -669,14 +659,9 @@ public:
This is the same as the overload taking wxArrayString, except that it
works with the standard vector container.
The template argument @c T can be any type convertible to wxString,
including wxString itself but also @c std::string, @c char* or @c
wchar_t*.
@since 3.1.0
*/
template <typename T>
void Set(const std::vector<T>& items);
void Set(const std::vector<wxString>& items);
/**
Replaces the current control contents with the given items.