Fix building wxIniConfig when wxUSE_BASE64=0
Use guards for wxUSE_BASE64 just as wxConfigBase does.
This commit is contained in:
@@ -81,11 +81,15 @@ protected:
|
||||
// read/write
|
||||
bool DoReadString(const wxString& key, wxString *pStr) const wxOVERRIDE;
|
||||
bool DoReadLong(const wxString& key, long *plResult) const wxOVERRIDE;
|
||||
#if wxUSE_BASE64
|
||||
bool DoReadBinary(const wxString& key, wxMemoryBuffer *buf) const wxOVERRIDE;
|
||||
#endif // wxUSE_BASE64
|
||||
|
||||
bool DoWriteString(const wxString& key, const wxString& szValue) wxOVERRIDE;
|
||||
bool DoWriteLong(const wxString& key, long lValue) wxOVERRIDE;
|
||||
#if wxUSE_BASE64
|
||||
bool DoWriteBinary(const wxString& key, const wxMemoryBuffer& buf) wxOVERRIDE;
|
||||
#endif // wxUSE_BASE64
|
||||
|
||||
private:
|
||||
// helpers
|
||||
|
||||
@@ -358,6 +358,8 @@ bool wxIniConfig::DoWriteLong(const wxString& szKey, long lValue)
|
||||
return Write(szKey, wxString::Format(wxT("%ld"), lValue));
|
||||
}
|
||||
|
||||
#if wxUSE_BASE64
|
||||
|
||||
bool wxIniConfig::DoReadBinary(const wxString& WXUNUSED(key),
|
||||
wxMemoryBuffer * WXUNUSED(buf)) const
|
||||
{
|
||||
@@ -374,6 +376,8 @@ bool wxIniConfig::DoWriteBinary(const wxString& WXUNUSED(key),
|
||||
return false;
|
||||
}
|
||||
|
||||
#endif // wxUSE_BASE64
|
||||
|
||||
bool wxIniConfig::Flush(bool /* bCurrentOnly */)
|
||||
{
|
||||
// this is just the way it works
|
||||
|
||||
Reference in New Issue
Block a user