X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/50257dba061011e25aa2a89b477c3b4c9da112a1..e93523680ba3c83cdae75b511214c82f28a2d853:/src/common/fileconf.cpp?ds=inline diff --git a/src/common/fileconf.cpp b/src/common/fileconf.cpp index 229e7a8b8d..7a82bf45ae 100644 --- a/src/common/fileconf.cpp +++ b/src/common/fileconf.cpp @@ -918,6 +918,8 @@ bool wxFileConfig::DoReadLong(const wxString& key, long *pl) const return str.ToLong(pl); } +#if wxUSE_BASE64 + bool wxFileConfig::DoReadBinary(const wxString& key, wxMemoryBuffer* buf) const { wxCHECK_MSG( buf, false, _T("NULL buffer") ); @@ -930,6 +932,8 @@ bool wxFileConfig::DoReadBinary(const wxString& key, wxMemoryBuffer* buf) const return true; } +#endif // wxUSE_BASE64 + bool wxFileConfig::DoWriteString(const wxString& key, const wxString& szValue) { wxConfigPathChanger path(this, key); @@ -995,11 +999,15 @@ bool wxFileConfig::DoWriteLong(const wxString& key, long lValue) return Write(key, wxString::Format(_T("%ld"), lValue)); } +#if wxUSE_BASE64 + bool wxFileConfig::DoWriteBinary(const wxString& key, const wxMemoryBuffer& buf) { return Write(key, wxBase64Encode(buf)); } +#endif // wxUSE_BASE64 + bool wxFileConfig::Flush(bool /* bCurrentOnly */) { if ( !IsDirty() || !m_fnLocalFile.GetFullPath() )