remove some unnecessary c_str() calls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -47,7 +47,7 @@ wxString wxGtkFileChooser::GetPath() const
|
||||
wxGtkString str( gtk_file_chooser_get_filename( m_widget ) );
|
||||
|
||||
wxString string;
|
||||
if (str.c_str() != NULL)
|
||||
if (str)
|
||||
string = wxString::FromUTF8(str);
|
||||
return string;
|
||||
}
|
||||
|
Reference in New Issue
Block a user