summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-11-08 20:41:23 +0100
committerMichael Stahl <mstahl@redhat.com>2014-11-08 22:58:21 +0100
commit526d6c96b6e39ed0a126ff6b64f125f082a8abbc (patch)
treeda336b04e3801f0b13248edb71875877724b0cf8 /sw/source
parente377a65a1e6acf6241ce0bd2fc35a6a786cd8de9 (diff)
sw: these can be asserts
Change-Id: I4ad1ff6fad2f4097c128dcaea5cf6064e2524aad
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/uibase/config/uinums.cxx2
-rw-r--r--sw/source/uibase/inc/uinums.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/config/uinums.cxx b/sw/source/uibase/config/uinums.cxx
index 7ccb53243cc5..d0d872f53e17 100644
--- a/sw/source/uibase/config/uinums.cxx
+++ b/sw/source/uibase/config/uinums.cxx
@@ -117,7 +117,7 @@ void SwChapterNumRules::CreateEmptyNumRule(sal_uInt16 const nIndex)
void SwChapterNumRules::ApplyNumRules(const SwNumRulesWithName &rCopy, sal_uInt16 nIdx)
{
bModified = true;
- OSL_ENSURE(nIdx < nMaxRules, "Array der NumRules ueberindiziert.");
+ assert(nIdx < nMaxRules);
if( !pNumRules[nIdx] )
pNumRules[nIdx] = new SwNumRulesWithName( rCopy );
else
diff --git a/sw/source/uibase/inc/uinums.hxx b/sw/source/uibase/inc/uinums.hxx
index e95bc9cca3cb..b593c1b3a341 100644
--- a/sw/source/uibase/inc/uinums.hxx
+++ b/sw/source/uibase/inc/uinums.hxx
@@ -113,7 +113,7 @@ public:
inline const SwNumRulesWithName *SwChapterNumRules::GetRules(sal_uInt16 nIdx) const
{
- OSL_ENSURE(nIdx < nMaxRules, "Array der NumRules ueberindiziert.");
+ assert(nIdx < nMaxRules);
return pNumRules[nIdx];
}