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

sw: those should be asserts

Change-Id: I2785b1d98307a19666ad3aabf3bbaff19a9d0a6e
üst 68bd686b
......@@ -149,10 +149,10 @@ sal_uInt16 SwDoc::GetCurTOXMark( const SwPosition& rPos,
void SwDoc::DeleteTOXMark( const SwTOXMark* pTOXMark )
{
const SwTextTOXMark* pTextTOXMark = pTOXMark->GetTextTOXMark();
OSL_ENSURE( pTextTOXMark, "No TextTOXMark, cannot be deleted" );
assert(pTextTOXMark);
SwTextNode& rTextNd = const_cast<SwTextNode&>(pTextTOXMark->GetTextNode());
OSL_ENSURE( rTextNd.GetpSwpHints(), "cannot be deleted" );
assert(rTextNd.GetpSwpHints());
if (pTextTOXMark->HasDummyChar())
{
......
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