summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-26 17:44:58 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-27 08:55:56 +0100
commit7af733d9ef65fddd12ef5fae82808ba2f7f608df (patch)
tree360afc7f8c5b7963730885255f631c9896f683b4 /xmloff
parent05f5c4d4d6addf5321a40595f598e55dce376f6f (diff)
tweak assert so comment appears in abort message
Change-Id: Ibf78e5cd1620f0b61cae030e3870be4a6f87e71d
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/text/txtparae.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx
index f02a6951092e..4475819a2acb 100644
--- a/xmloff/source/text/txtparae.cxx
+++ b/xmloff/source/text/txtparae.cxx
@@ -794,7 +794,6 @@ OUString XMLTextParagraphExport::FindTextStyleAndHyperlink(
}
OUString sParent; // AutoStyles should not have parents!
sName = GetAutoStylePool().Find( XML_STYLE_FAMILY_TEXT_TEXT, sParent, xPropStates );
- // assert(!sName.isEmpty()); // AutoStyle could not be found
rbHasAutoStyle = true;
}
@@ -1068,7 +1067,7 @@ void XMLTextParagraphExport::exportListChange(
rPrevInfo.BelongsToSameList( rNextInfo ) &&
rPrevInfo.GetLevel() >= rNextInfo.GetLevel() )
{
- assert(pListElements && pListElements->size() >= 2); //list elements missing
+ assert(pListElements && pListElements->size() >= 2 && "list elements missing");
bEndElement = pListElements && pListElements->size() >= 2;
}