Move wxStringOutputStream ctor to the source file

There is no real need for this not quite trivial function to be inline.

No real changes.
This commit is contained in:
Vadim Zeitlin
2017-11-02 23:33:57 +01:00
parent 16888e9883
commit e09d87f54b
2 changed files with 11 additions and 9 deletions

View File

@@ -63,15 +63,7 @@ public:
// Note that the conversion object should have the life time greater than // Note that the conversion object should have the life time greater than
// this stream. // this stream.
wxStringOutputStream(wxString *pString = NULL, wxStringOutputStream(wxString *pString = NULL,
wxMBConv& conv = wxConvUTF8) wxMBConv& conv = wxConvUTF8);
: m_conv(conv)
#if wxUSE_UNICODE
, m_unconv(0)
#endif // wxUSE_UNICODE
{
m_str = pString ? pString : &m_strInternal;
m_pos = m_str->length() / sizeof(wxChar);
}
// get the string containing current output // get the string containing current output
const wxString& GetString() const { return *m_str; } const wxString& GetString() const { return *m_str; }

View File

@@ -128,6 +128,16 @@ size_t wxStringInputStream::OnSysRead(void *buffer, size_t size)
// wxStringOutputStream implementation // wxStringOutputStream implementation
// ============================================================================ // ============================================================================
wxStringOutputStream::wxStringOutputStream(wxString *pString, wxMBConv& conv)
: m_conv(conv)
#if wxUSE_UNICODE
, m_unconv(0)
#endif // wxUSE_UNICODE
{
m_str = pString ? pString : &m_strInternal;
m_pos = m_str->length() / sizeof(wxChar);
}
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// seek/tell // seek/tell
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------