]> git.saurik.com Git - wxWidgets.git/commitdiff
replaced assert in wxPrintfConvSpec::ReplaceAsteriskWith() with a wxCHECK to avoid...
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 27 Nov 2006 15:02:15 +0000 (15:02 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 27 Nov 2006 15:02:15 +0000 (15:02 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/wxchar.cpp

index da63e4ba0c4a068e463b07301e5d57f765b5be19..f79bd0cbb86b4e8cb52cc6187b88044d886ee01e 100644 (file)
@@ -624,7 +624,7 @@ void wxPrintfConvSpec::ReplaceAsteriskWith(int width)
 
     // find the first * in our flag buffer
     char *pwidth = strchr(m_szFlags, '*');
-    wxASSERT(pwidth);
+    wxCHECK_RET(pwidth, _T("field width must be specified"));
 
     // save what follows the * (the +1 is to skip the asterisk itself!)
     strcpy(temp, pwidth+1);