]> git.saurik.com Git - wxWidgets.git/commitdiff
Changed all the wxASSERT(0) calls to use wxFAIL_MSG()
authorGeorge Tasker <gtasker@allenbrook.com>
Mon, 3 Dec 2001 10:54:59 +0000 (10:54 +0000)
committerGeorge Tasker <gtasker@allenbrook.com>
Mon, 3 Dec 2001 10:54:59 +0000 (10:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

utils/HelpGen/src/ifcontext.cpp
utils/HelpGen/src/srcparser.cpp

index 295aab86dc8c3f3ab4277458347d3eca712a00ec..79f9c72a44ff903a56f7f14cf48d0a63e848a769 100644 (file)
 
 size_t spInterFileContext::GetFileNo( const string& fname )
 {
-       for( size_t i = 0; i != mFiles.size(); ++i )
-
-               if ( fname == mFiles[i] ) return i;
+    size_t i;
+       for ( i = 0; i != mFiles.size(); ++i )
+               if ( fname == mFiles[i] )
+            return i;
 
-       wxASSERT(0); // DBG::
+    wxFAIL_MSG("File not found in array in function spInterFileContext::GetFileNo()");
        return 0;
 }
 
@@ -119,8 +120,8 @@ void spInterFileContext::DoAppendSourceFragment( string& source,
 
                if ( cur >= pos + len ) // check if we've overstepped the current source-fragment
                {
-                       wxASSERT(0); // DBG:: with current imp. this should not happen
-                       
+//                     wxASSERT(0); // DBG:: with current imp. this should not happen
+            wxFAIL_MSG("Overstepped the current source fragment in function\nspInterFileContext::DoAppendSourceFragment()");                   
                        cur = pos + len; break;
                }
        }
index 54068894019c1cf59a8e9885b9a9d3baf9d5fa05..b0c12f40f4112926274ce8e6ce37874f7209e9bf 100644 (file)
@@ -346,7 +346,7 @@ void spContext::RemoveThisContext()
         mpParent->RemoveChild( this );
     else
         // context should have a parent
-        wxASSERT(0);
+        wxFAIL_MSG("Context should have a parent");
 }
 
 spContext* spContext::GetOutterContext()