tdf#91794 remove OSL_DEBUG_LEVEL > 1 conditionals

I removed OSL_DEBUG_LEVEL > 1 conditionals and left SAL_INFO()s
statements alone. I also removed OUStringToOString(..) calls that were
used by SAL_INFO(..)

Change-Id: I01cce00265531d7f0ad0a6f564fef6262d3d1205
Reviewed-on: https://gerrit.libreoffice.org/23036
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Rohan Kumar 2016-03-09 11:32:40 +05:30 committed by Stephan Bergmann
parent adfa772549
commit 0a8c9fde3b
4 changed files with 6 additions and 34 deletions

View File

@ -497,11 +497,7 @@ void DocumentHandlerImpl::startElement(
if (m_nSkipElements > 0) if (m_nSkipElements > 0)
{ {
++m_nSkipElements; // wait for another end tag ++m_nSkipElements; // wait for another end tag
#if OSL_DEBUG_LEVEL > 1 SAL_INFO("xmlscript.xmlhelper", " no context given on createChildElement() => ignoring element \"" << rQElementName << "\" ...");
OString aQName(
OUStringToOString( rQElementName, RTL_TEXTENCODING_ASCII_US ) );
SAL_INFO("xmlscript.xmlhelper", "### no context given on createChildElement() => ignoring element \"" << aQName.getStr() << "\" ...");
#endif
return; return;
} }
@ -608,11 +604,7 @@ void DocumentHandlerImpl::startElement(
else else
{ {
++m_nSkipElements; ++m_nSkipElements;
#if OSL_DEBUG_LEVEL > 1 SAL_INFO("xmlscript.xmlhelper", " no context given on createChildElement() => ignoring element \"" << rQElementName << "\" ...");
OString aQName(
OUStringToOString( rQElementName, RTL_TEXTENCODING_ASCII_US ) );
SAL_INFO("xmlscript.xmlhelper", "### no context given on createChildElement() => ignoring element \"" << aQName.getStr() << "\" ...");
#endif
} }
} }
} }
@ -627,11 +619,7 @@ void DocumentHandlerImpl::endElement(
if (m_nSkipElements) if (m_nSkipElements)
{ {
--m_nSkipElements; --m_nSkipElements;
#if OSL_DEBUG_LEVEL > 1 SAL_INFO("xmlscript.xmlhelper", "### received endElement() for \"" << rQElementName << "\".");
OString aQName(
OUStringToOString( rQElementName, RTL_TEXTENCODING_ASCII_US ) );
SAL_INFO("xmlscript.xmlhelper", "### received endElement() for \"" << aQName.getStr() << "\".");
#endif
static_cast<void>(rQElementName); static_cast<void>(rQElementName);
return; return;
} }

View File

@ -1702,11 +1702,7 @@ ElementBase::~ElementBase()
_pParent->release(); _pParent->release();
} }
#if OSL_DEBUG_LEVEL > 1 SAL_INFO("xmlscript.xmldlg", "ElementBase::~ElementBase(): " << _aLocalName );
OString aStr( OUStringToOString(
_aLocalName, RTL_TEXTENCODING_ASCII_US ) );
SAL_INFO("xmlscript.xmldlg", "ElementBase::~ElementBase(): " << aStr.getStr() );
#endif
} }
// XRoot // XRoot
@ -1761,9 +1757,7 @@ Reference< xml::input::XElement > DialogImport::startRootElement(
DialogImport::~DialogImport() DialogImport::~DialogImport()
{ {
#if OSL_DEBUG_LEVEL > 1
SAL_INFO("xmlscript.xmldlg", "DialogImport::~DialogImport()." ); SAL_INFO("xmlscript.xmldlg", "DialogImport::~DialogImport()." );
#endif
} }
Reference< util::XNumberFormatsSupplier > const & DialogImport::getNumberFormatsSupplier() Reference< util::XNumberFormatsSupplier > const & DialogImport::getNumberFormatsSupplier()

View File

@ -110,10 +110,7 @@ LibElementBase::~LibElementBase()
_pParent->release(); _pParent->release();
} }
#if OSL_DEBUG_LEVEL > 1 SAL_INFO("xmlscript.xmllib", "LibElementBase::~LibElementBase(): " << _aLocalName );
OString aStr( OUStringToOString( _aLocalName, RTL_TEXTENCODING_ASCII_US ) );
SAL_INFO("xmlscript.xmllib", "LibElementBase::~LibElementBase(): " << aStr.getStr() );
#endif
} }
// XRoot // XRoot
@ -176,9 +173,7 @@ Reference< xml::input::XElement > LibraryImport::startRootElement(
LibraryImport::~LibraryImport() LibraryImport::~LibraryImport()
{ {
#if OSL_DEBUG_LEVEL > 1
SAL_INFO("xmlscript.xmllib", "LibraryImport::~LibraryImport()." ); SAL_INFO("xmlscript.xmllib", "LibraryImport::~LibraryImport()." );
#endif
} }
// libraries // libraries

View File

@ -110,10 +110,7 @@ ModuleElement::~ModuleElement()
_pParent->release(); _pParent->release();
} }
#if OSL_DEBUG_LEVEL > 1 SAL_INFO("xmlscript.xmlmod", "ModuleElement::~ModuleElement(): " << _aLocalName );
OString aStr( OUStringToOString( _aLocalName, RTL_TEXTENCODING_ASCII_US ) );
SAL_INFO("xmlscript.xmlmod", "ModuleElement::~ModuleElement(): " << aStr.getStr() );
#endif
} }
// XRoot // XRoot
@ -171,9 +168,7 @@ Reference< xml::input::XElement > ModuleImport::startRootElement(
ModuleImport::~ModuleImport() ModuleImport::~ModuleImport()
{ {
#if OSL_DEBUG_LEVEL > 1
SAL_INFO("xmlscript.xmlmod", "ModuleImport::~ModuleImport()." ); SAL_INFO("xmlscript.xmlmod", "ModuleImport::~ModuleImport()." );
#endif
} }
Reference< xml::sax::XDocumentHandler > Reference< xml::sax::XDocumentHandler >