diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-05-06 15:19:00 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-05-06 16:18:26 +0200 |
commit | 83d8ccfb0a1e175149d6507e35757317568c7883 (patch) | |
tree | b67f1df04415ec557d4c0e7a57d42737f7d52ec4 /xmloff | |
parent | 068f16e2f44b21df0bf7423eb02e8d57b4cb589c (diff) |
xmloff: convert to assert in SvXMLMetaExport
Change-Id: Ib959da6f4dab0b290955e8b786d6efeef7f307b0
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/meta/xmlmetae.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xmloff/source/meta/xmlmetae.cxx b/xmloff/source/meta/xmlmetae.cxx index 77ece02ecceb..a9bb477d6ac6 100644 --- a/xmloff/source/meta/xmlmetae.cxx +++ b/xmloff/source/meta/xmlmetae.cxx @@ -286,7 +286,7 @@ void SvXMLMetaExport::_MExport() XML_NAMESPACE_META, XML_CELL_COUNT, aValue ); else { - DBG_ASSERT( false, "Unknown statistic value!\n" ); + SAL_WARN("xmloff", "Unknown statistic value!"); } } } @@ -308,7 +308,7 @@ SvXMLMetaExport::SvXMLMetaExport( m_level( 0 ), m_preservedNSs() { - DBG_ASSERT( mxDocProps.is(), "no document properties" ); + assert(mxDocProps.is()); } SvXMLMetaExport::~SvXMLMetaExport() @@ -331,7 +331,7 @@ void SvXMLMetaExport::Export() } else if (attrname.equalsAsciiL(s_xmlns, strlen(s_xmlns))) { // default initialized empty string } else { - OSL_FAIL("namespace attribute not starting with xmlns unexpected"); + assert(!"namespace attribute not starting with xmlns unexpected"); } ns.Second = rNsMap.GetNameByKey(key); namespaces.push_back(ns); @@ -352,7 +352,7 @@ SvXMLMetaExport::startDocument() throw (uno::RuntimeException, xml::sax::SAXException, std::exception) { // ignore: has already been done by SvXMLExport::exportDoc - DBG_ASSERT( m_level == 0, "SvXMLMetaExport: level error" ); + assert(m_level == 0 && "SvXMLMetaExport: level error"); } void SAL_CALL @@ -360,7 +360,7 @@ SvXMLMetaExport::endDocument() throw (uno::RuntimeException, xml::sax::SAXException, std::exception) { // ignore: will be done by SvXMLExport::exportDoc - DBG_ASSERT( m_level == 0, "SvXMLMetaExport: level error" ); + assert(m_level == 0 && "SvXMLMetaExport: level error"); } // unfortunately, this method contains far too much ugly namespace mangling. @@ -456,7 +456,7 @@ SvXMLMetaExport::endElement(const OUString & i_rName) // ignore the root; see startElement return; } - DBG_ASSERT( m_level >= 0, "SvXMLMetaExport: level error" ); + assert(m_level >= 0 && "SvXMLMetaExport: level error"); mrExport.EndElement(i_rName, false); } |