Turn "odd number of Which-IDs" into a true assert
...as it leads to crashes anyway (as witnessed with what got fixed with
09ee17974f
"Fix Which-ID range of
OfaTreeOptionsDialog item set").
Change-Id: I9ad24d3dd11530ad002a5277d22b60e651e67d70
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
|
||||
#include <cassert>
|
||||
#include <vector>
|
||||
// compiled via include from itemset.cxx only!
|
||||
|
||||
@@ -86,7 +86,7 @@ NUMTYPE InitializeRanges_Impl( NUMTYPE *&rpRanges, va_list pArgs,
|
||||
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
|
||||
rpRanges = new NUMTYPE[ aNumArr.size() + 1 ];
|
||||
|
Reference in New Issue
Block a user