Kaydet (Commit) 526d6c96 authored tarafından Michael Stahl's avatar Michael Stahl

sw: these can be asserts

Change-Id: I4ad1ff6fad2f4097c128dcaea5cf6064e2524aad
üst e377a65a
......@@ -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
......
......@@ -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];
}
......
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