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:
Vadim Zeitlin
2017-11-02 23:34:38 +01:00
parent e09d87f54b
commit 8e7fef5f08
2 changed files with 3 additions and 3 deletions

View File

@@ -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; }