Kaydet (Commit) cc679894 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Turn "odd number of Which-IDs" into a true assert

...as it leads to crashes anyway (as witnessed with what got fixed with
09ee1797 "Fix Which-ID range of
OfaTreeOptionsDialog item set").

Change-Id: I9ad24d3dd11530ad002a5277d22b60e651e67d70
üst dc157e8a
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include <cassert>
#include <vector> #include <vector>
// compiled via include from itemset.cxx only! // compiled via include from itemset.cxx only!
...@@ -86,7 +86,7 @@ NUMTYPE InitializeRanges_Impl( NUMTYPE *&rpRanges, va_list pArgs, ...@@ -86,7 +86,7 @@ NUMTYPE InitializeRanges_Impl( NUMTYPE *&rpRanges, va_list pArgs,
aNumArr.push_back( nIns ); aNumArr.push_back( nIns );
} }
DBG_ASSERT( bEndOfRange, "ungerade Anzahl von Which-Paaren!" ); assert( bEndOfRange ); // odd number of Which-IDs
// so, jetzt sind alle Bereiche vorhanden und // so, jetzt sind alle Bereiche vorhanden und
rpRanges = new NUMTYPE[ aNumArr.size() + 1 ]; rpRanges = new NUMTYPE[ aNumArr.size() + 1 ];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment