Fix building tests with wxUSE_UNSAFE_WXSTRING_CONV==0
Avoid relying on implicit conversions to std::string in the tests code.
This commit is contained in:
@@ -113,7 +113,7 @@ private:
|
||||
static std::string
|
||||
Message(size_t n, const wxString& msg)
|
||||
{
|
||||
return std::string(wxString::Format("#%lu: %s", (unsigned long)n, msg));
|
||||
return wxString::Format("#%lu: %s", (unsigned long)n, msg).ToStdString();
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
|
Reference in New Issue
Block a user