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:
Cătălin Răceanu
2017-02-24 16:37:37 +02:00
committed by VZ
parent 3a02672de8
commit e8207c8c59
4 changed files with 6 additions and 2 deletions

View File

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