From: Vadim Zeitlin Date: Sun, 20 Jul 2003 14:05:48 +0000 (+0000) Subject: warning fix X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a8e25474e42a8af7cfc0071bd3149afa42d7b60b warning fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/filedlgg.cpp b/src/generic/filedlgg.cpp index 3e526cd611..d528b92b1e 100644 --- a/src/generic/filedlgg.cpp +++ b/src/generic/filedlgg.cpp @@ -871,8 +871,10 @@ wxGenericFileDialog::wxGenericFileDialog(wxWindow *parent, // interpret wildcards wxArrayString wildDescriptions, wildFilters; - int wild_count = ParseWildcard(m_wildCard, wildDescriptions, wildFilters); - wxASSERT_MSG(wild_count > 0, wxT("Wrong file type descripition") ); + if ( !ParseWildcard(m_wildCard, wildDescriptions, wildFilters) ) + { + wxFAIL_MSG( wxT("Wrong file type descripition") ); + } // layout