summaryrefslogtreecommitdiff
path: root/svl/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-11-14 09:24:12 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-11-14 09:24:12 +0100
commitcc6798946dd8ab54d3fac1e49e9a201724e6d747 (patch)
tree795339cd5d07b7e16ccbe4bdb79fcf379c819445 /svl/source
parentdc157e8a31fda636a933fa8e0f1662abfea73ec7 (diff)
Turn "odd number of Which-IDs" into a true assert
...as it leads to crashes anyway (as witnessed with what got fixed with 09ee17974f31ca188df532a2fea33a79ca367ebe "Fix Which-ID range of OfaTreeOptionsDialog item set"). Change-Id: I9ad24d3dd11530ad002a5277d22b60e651e67d70
Diffstat (limited to 'svl/source')
-rw-r--r--svl/source/items/nranges.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svl/source/items/nranges.cxx b/svl/source/items/nranges.cxx
index b3a7210f559e..c2c08cdfeb4c 100644
--- a/svl/source/items/nranges.cxx
+++ b/svl/source/items/nranges.cxx
@@ -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 ];