git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40285
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool wxXmlDocument::Load(const wxString& filename, const wxString& encoding)
{
wxFileInputStream stream(filename);
bool wxXmlDocument::Load(const wxString& filename, const wxString& encoding)
{
wxFileInputStream stream(filename);
+ if (!stream.Ok())
+ return false;
return Load(stream, encoding);
}
bool wxXmlDocument::Save(const wxString& filename) const
{
wxFileOutputStream stream(filename);
return Load(stream, encoding);
}
bool wxXmlDocument::Save(const wxString& filename) const
{
wxFileOutputStream stream(filename);
+ if (!stream.Ok())
+ return false;