put #if wxUSE_FFILE && wxUSE_STREAMS around functions using wxFFileStream (patch 1721939)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46204 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -7902,7 +7902,7 @@ wxTextAttrEx wxTextAttrEx::CombineEx(const wxTextAttrEx& attr,
|
|||||||
|
|
||||||
IMPLEMENT_CLASS(wxRichTextFileHandler, wxObject)
|
IMPLEMENT_CLASS(wxRichTextFileHandler, wxObject)
|
||||||
|
|
||||||
#if wxUSE_STREAMS
|
#if wxUSE_FFILE && wxUSE_STREAMS
|
||||||
bool wxRichTextFileHandler::LoadFile(wxRichTextBuffer *buffer, const wxString& filename)
|
bool wxRichTextFileHandler::LoadFile(wxRichTextBuffer *buffer, const wxString& filename)
|
||||||
{
|
{
|
||||||
wxFFileInputStream stream(filename);
|
wxFFileInputStream stream(filename);
|
||||||
@@ -7920,7 +7920,7 @@ bool wxRichTextFileHandler::SaveFile(wxRichTextBuffer *buffer, const wxString& f
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#endif // wxUSE_STREAMS
|
#endif // wxUSE_FFILE && wxUSE_STREAMS
|
||||||
|
|
||||||
/// Can we handle this filename (if using files)? By default, checks the extension.
|
/// Can we handle this filename (if using files)? By default, checks the extension.
|
||||||
bool wxRichTextFileHandler::CanHandle(const wxString& filename) const
|
bool wxRichTextFileHandler::CanHandle(const wxString& filename) const
|
||||||
|
Reference in New Issue
Block a user