]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wxchar.cpp
fixed unused variable warning
[wxWidgets.git] / 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);