diff --git a/include/wx/string.h b/include/wx/string.h index 56ef478ee8..6758399c79 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -1287,7 +1287,7 @@ public: #if wxUSE_STL // return an empty wxString (not very useful with wxUSE_STL == 1) - inline const wxString wxGetEmptyString() { wxString(); } + inline const wxString wxGetEmptyString() { return wxString(); } #else // !wxUSE_STL // return an empty wxString (more efficient than wxString() here) inline const wxString& wxGetEmptyString()