summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-05-20 11:22:32 +0200
committerMichael Stahl <mstahl@redhat.com>2015-05-20 21:13:39 +0200
commitca95df9d6005e1f8b14ffe1b58b18dfae5951983 (patch)
treec297ccbadb617caa32a37822ab69e03253106698 /xmloff
parentcc1554a47cf6058a56c49aecf2574f99258920b6 (diff)
xmloff: convert legacy assertions in XMLFootnoteSeparatorExport
Change-Id: I4f9d429e055df0d7bc01e710334259d737d2d4f3
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/style/XMLFootnoteSeparatorExport.cxx14
1 files changed, 4 insertions, 10 deletions
diff --git a/xmloff/source/style/XMLFootnoteSeparatorExport.cxx b/xmloff/source/style/XMLFootnoteSeparatorExport.cxx
index b551194e65d8..067cdb840217 100644
--- a/xmloff/source/style/XMLFootnoteSeparatorExport.cxx
+++ b/xmloff/source/style/XMLFootnoteSeparatorExport.cxx
@@ -20,8 +20,6 @@
#include "XMLFootnoteSeparatorExport.hxx"
-#include <tools/debug.hxx>
-
#include <sax/tools/converter.hxx>
#include <xmloff/xmlexp.hxx>
@@ -51,14 +49,10 @@ XMLFootnoteSeparatorExport::~XMLFootnoteSeparatorExport()
void XMLFootnoteSeparatorExport::exportXML(
const vector<XMLPropertyState> * pProperties,
- sal_uInt32
- #ifdef DBG_UTIL
- nIdx
- #endif
- ,
+ sal_uInt32 const nIdx,
const rtl::Reference<XMLPropertySetMapper> & rMapper)
{
- DBG_ASSERT(NULL != pProperties, "Need property states");
+ assert(pProperties);
// intialize values
sal_Int16 eLineAdjust = text::HorizontalAdjust_LEFT;
@@ -96,8 +90,8 @@ void XMLFootnoteSeparatorExport::exportXML(
rState.maValue >>= nLineTextDistance;
break;
case CTF_PM_FTN_LINE_WEIGHT:
- DBG_ASSERT( i == nIdx,
- "received wrong property state index" );
+ (void) nIdx;
+ assert(i == nIdx && "received wrong property state index");
rState.maValue >>= nLineWeight;
break;
case CTF_PM_FTN_LINE_STYLE: