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:
Paul Cornett
2007-09-17 17:24:44 +00:00
parent f513aa78ee
commit 260020e392
6 changed files with 34 additions and 39 deletions

View File

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