Make wxStringOutputStream ctor explicit
Avoid accidentally creating wxStringOutputStream from a wxString pointer, this seems unlikely, but why take the risk of it happening at all.
This commit is contained in:
@@ -62,8 +62,8 @@ public:
|
||||
//
|
||||
// Note that the conversion object should have the life time greater than
|
||||
// this stream.
|
||||
wxStringOutputStream(wxString *pString = NULL,
|
||||
wxMBConv& conv = wxConvUTF8);
|
||||
explicit wxStringOutputStream(wxString *pString = NULL,
|
||||
wxMBConv& conv = wxConvUTF8);
|
||||
|
||||
// get the string containing current output
|
||||
const wxString& GetString() const { return *m_str; }
|
||||
|
Reference in New Issue
Block a user