git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55876
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
#if wxUSE_STD_IOSTREAM
wxSTD ofstream store(file.mb_str(), wxSTD ios::binary);
{
#if wxUSE_STD_IOSTREAM
wxSTD ofstream store(file.mb_str(), wxSTD ios::binary);
- if (store.fail() || store.bad())
#else
wxFileOutputStream store(file);
#else
wxFileOutputStream store(file);
- if (store.GetLastError() != wxSTREAM_NO_ERROR)
+ if ( store.GetLastError() != wxSTREAM_NO_ERROR )
#endif
{
wxLogError(_("File \"%s\" could not be opened for writing."), file);
#endif
{
wxLogError(_("File \"%s\" could not be opened for writing."), file);
{
#if wxUSE_STD_IOSTREAM
wxSTD ifstream store(file.mb_str(), wxSTD ios::binary);
{
#if wxUSE_STD_IOSTREAM
wxSTD ifstream store(file.mb_str(), wxSTD ios::binary);
- if ( store.fail() || store.bad() )
#else
wxFileInputStream store(file);
if (store.GetLastError() != wxSTREAM_NO_ERROR)
#else
wxFileInputStream store(file);
if (store.GetLastError() != wxSTREAM_NO_ERROR)
#if wxUSE_STD_IOSTREAM
LoadObject(store);
#if wxUSE_STD_IOSTREAM
LoadObject(store);
- if ( store.fail() || store.bad() )
#else
int res = LoadObject(store).GetLastError();
if ( res != wxSTREAM_NO_ERROR && res != wxSTREAM_EOF )
#else
int res = LoadObject(store).GetLastError();
if ( res != wxSTREAM_NO_ERROR && res != wxSTREAM_EOF )