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

xmloff: convert legacy assertions in XMLFootnoteSeparatorExport

Change-Id: I4f9d429e055df0d7bc01e710334259d737d2d4f3
üst cc1554a4
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#include "XMLFootnoteSeparatorExport.hxx" #include "XMLFootnoteSeparatorExport.hxx"
#include <tools/debug.hxx>
#include <sax/tools/converter.hxx> #include <sax/tools/converter.hxx>
#include <xmloff/xmlexp.hxx> #include <xmloff/xmlexp.hxx>
...@@ -51,14 +49,10 @@ XMLFootnoteSeparatorExport::~XMLFootnoteSeparatorExport() ...@@ -51,14 +49,10 @@ XMLFootnoteSeparatorExport::~XMLFootnoteSeparatorExport()
void XMLFootnoteSeparatorExport::exportXML( void XMLFootnoteSeparatorExport::exportXML(
const vector<XMLPropertyState> * pProperties, const vector<XMLPropertyState> * pProperties,
sal_uInt32 sal_uInt32 const nIdx,
#ifdef DBG_UTIL
nIdx
#endif
,
const rtl::Reference<XMLPropertySetMapper> & rMapper) const rtl::Reference<XMLPropertySetMapper> & rMapper)
{ {
DBG_ASSERT(NULL != pProperties, "Need property states"); assert(pProperties);
// intialize values // intialize values
sal_Int16 eLineAdjust = text::HorizontalAdjust_LEFT; sal_Int16 eLineAdjust = text::HorizontalAdjust_LEFT;
...@@ -96,8 +90,8 @@ void XMLFootnoteSeparatorExport::exportXML( ...@@ -96,8 +90,8 @@ void XMLFootnoteSeparatorExport::exportXML(
rState.maValue >>= nLineTextDistance; rState.maValue >>= nLineTextDistance;
break; break;
case CTF_PM_FTN_LINE_WEIGHT: case CTF_PM_FTN_LINE_WEIGHT:
DBG_ASSERT( i == nIdx, (void) nIdx;
"received wrong property state index" ); assert(i == nIdx && "received wrong property state index");
rState.maValue >>= nLineWeight; rState.maValue >>= nLineWeight;
break; break;
case CTF_PM_FTN_LINE_STYLE: case CTF_PM_FTN_LINE_STYLE:
......
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