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:
parent
16888e9883
commit
e09d87f54b
2 changed files with 11 additions and 9 deletions
|
|
@ -63,15 +63,7 @@ public:
|
|||
// Note that the conversion object should have the life time greater than
|
||||
// this stream.
|
||||
wxStringOutputStream(wxString *pString = NULL,
|
||||
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);
|
||||
}
|
||||
wxMBConv& conv = wxConvUTF8);
|
||||
|
||||
// get the string containing current output
|
||||
const wxString& GetString() const { return *m_str; }
|
||||
|
|
|
|||
|
|
@ -128,6 +128,16 @@ size_t wxStringInputStream::OnSysRead(void *buffer, size_t size)
|
|||
// 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
|
||||
// ----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue