m_pos = 0;
#if WXWIN_COMPATIBILITY_2_4
- // treat compatibilty mode as auto
+ // treat compatibility mode as auto
m_24compatibilty = flags == wxZLIB_24COMPATIBLE;
if (m_24compatibilty)
flags = wxZLIB_AUTO;
default:
wxString msg(m_inflate->msg, *wxConvCurrent);
if (!msg)
- msg.Format(_("zlib error %d"), err);
+ msg = wxString::Format(_("zlib error %d"), err);
wxLogError(_("Can't read from inflate stream: %s"), msg.c_str());
m_lasterror = wxSTREAM_READ_ERROR;
}
m_lasterror = wxSTREAM_WRITE_ERROR;
wxString msg(m_deflate->msg, *wxConvCurrent);
if (!msg)
- msg.Format(_("zlib error %d"), err);
+ msg = wxString::Format(_("zlib error %d"), err);
wxLogError(_("Can't write to deflate stream: %s"), msg.c_str());
}