various small cleanups
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48755 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -84,10 +84,10 @@ wxString wxFileCtrlEvent::GetFile() const
|
||||
wxASSERT_MSG( !wxDynamicCast( GetEventObject(), wxFileCtrl )->HasMultipleFileSelection(),
|
||||
wxT( "Please use GetFiles() to get all files instead of this function" ) );
|
||||
|
||||
if ( files.Count() == 0 )
|
||||
return wxEmptyString;
|
||||
else
|
||||
return files[0];
|
||||
wxString string;
|
||||
if (m_files.Count() != 0)
|
||||
string = m_files[0];
|
||||
return string;
|
||||
}
|
||||
|
||||
#endif // wxUSE_FILECTRL
|
||||
|
Reference in New Issue
Block a user