Add support for size_t to wxConfig

Allow writing and reading size_t values directly too, there were not
previously accepted unlike all the other arithmetic types.

Closes #19091.
This commit is contained in:
Vadim Zeitlin
2021-03-09 21:33:30 +01:00
parent fce8780297
commit 0c837e5310
4 changed files with 65 additions and 1 deletions

View File

@@ -192,6 +192,9 @@ public:
bool Read(const wxString& key, wxLongLong_t *pl, wxLongLong_t defVal) const;
#endif // wxHAS_LONG_LONG_T_DIFFERENT_FROM_LONG
bool Read(const wxString& key, size_t* val) const;
bool Read(const wxString& key, size_t* val, size_t defVal) const;
#if wxUSE_BASE64
// read a binary data block
bool Read(const wxString& key, wxMemoryBuffer* data) const