Remove wxUSE_STD_STRING and wxUSE_STD_CONTAINERS_COMPATIBLY
Assume they are always 1 now, there is no good reason to ever set them to 0 any more. Note that we still keep wxUSE_STD_IOSTREAM for now, but we can drop wxUSE_STD_DEFAULT as it's not worth having it just for this single option (previously it was used as the default value for 3 of them).
This commit is contained in:
parent
2c0c727f49
commit
be7860c766
29 changed files with 134 additions and 579 deletions
|
|
@ -18,9 +18,7 @@
|
|||
#include "wx/arrstr.h"
|
||||
#include "wx/control.h" // base class
|
||||
|
||||
#if wxUSE_STD_CONTAINERS_COMPATIBLY
|
||||
#include <vector>
|
||||
#endif // wxUSE_STD_CONTAINERS_COMPATIBLY
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxItemContainer defines an interface which is implemented by all controls
|
||||
|
|
@ -219,11 +217,8 @@ public:
|
|||
const wxString *items,
|
||||
wxClientData **clientData)
|
||||
{ return AppendItems(wxArrayStringsAdapter(n, items), clientData); }
|
||||
|
||||
#if wxUSE_STD_CONTAINERS_COMPATIBLY
|
||||
int Append(const std::vector<wxString>& items)
|
||||
{ return AppendItems(items); }
|
||||
#endif // wxUSE_STD_CONTAINERS_COMPATIBLY
|
||||
|
||||
// only for RTTI needs (separate name)
|
||||
void AppendString(const wxString& item)
|
||||
|
|
@ -263,11 +258,8 @@ public:
|
|||
unsigned int pos,
|
||||
wxClientData **clientData)
|
||||
{ return InsertItems(wxArrayStringsAdapter(n, items), pos, clientData); }
|
||||
|
||||
#if wxUSE_STD_CONTAINERS_COMPATIBLY
|
||||
int Insert(const std::vector<wxString>& items, unsigned int pos)
|
||||
{ return InsertItems(items, pos); }
|
||||
#endif // wxUSE_STD_CONTAINERS_COMPATIBLY
|
||||
|
||||
// replacing items
|
||||
// ---------------
|
||||
|
|
@ -284,11 +276,8 @@ public:
|
|||
{ Clear(); Append(n, items, clientData); }
|
||||
void Set(unsigned int n, const wxString *items, wxClientData **clientData)
|
||||
{ Clear(); Append(n, items, clientData); }
|
||||
|
||||
#if wxUSE_STD_CONTAINERS_COMPATIBLY
|
||||
void Set(const std::vector<wxString>& items)
|
||||
{ Clear(); Append(items); }
|
||||
#endif // wxUSE_STD_CONTAINERS_COMPATIBLY
|
||||
|
||||
// deleting items
|
||||
// --------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue