summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorRohan Kumar <rohankanojia420@gmail.com>2016-03-03 16:19:27 +0530
committerBjörn Michaelsen <bjoern.michaelsen@canonical.com>2016-04-05 12:09:42 +0000
commitbc504b08f008b1813a29bb90c226340407c2077b (patch)
tree3f7ca8974d5752e52a7b3ac1227ab7a045f47b2b /filter
parent931d003ade7c4a88f46be1e89b32d58e5eb9d083 (diff)
tdf#91794 OSL_DEBUG_LEVEL > 1 removed in libo/filter module
I replaced the occurences of OSL_DEBUG_LEVEL > 1 with the debug macro DEBUG_{module}_{area}. Change-Id: Ibbf7345d3dc43354ff80a8ceafb4a812749513c7 Reviewed-on: https://gerrit.libreoffice.org/22355 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Diffstat (limited to 'filter')
-rw-r--r--filter/source/msfilter/msdffimp.cxx6
-rw-r--r--filter/source/msfilter/mstoolbar.cxx29
-rw-r--r--filter/source/svg/svgreader.cxx6
-rw-r--r--filter/source/xsltfilter/LibXSLTTransformer.cxx2
4 files changed, 21 insertions, 22 deletions
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index 85955a447979..c8fd4dce63b3 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -6373,7 +6373,7 @@ bool SvxMSDffManager::GetBLIPDirect( SvStream& rBLIPStream, Graphic& rData, Rect
pGrStream = xOut.get();
}
-#if OSL_DEBUG_LEVEL > 2
+#ifdef DEBUG_FILTER_MSDFFIMP
// extract graphics from ole storage into "dbggfxNNN.*"
static sal_Int32 nGrfCount;
@@ -6417,7 +6417,7 @@ bool SvxMSDffManager::GetBLIPDirect( SvStream& rBLIPStream, Graphic& rData, Rect
sal_Int32 nDbgLen = nLength - nSkip;
if ( nDbgLen )
{
- std::std::unique_ptr<sal_Char[]> xDat(new sal_Char[ nDbgLen ]);
+ std::unique_ptr<sal_Char[]> xDat(new sal_Char[ nDbgLen ]);
pGrStream->Read( xDat.get(), nDbgLen );
pDbgOut->Write( xDat.get(), nDbgLen );
pGrStream->SeekRel( -nDbgLen );
@@ -6936,7 +6936,7 @@ css::uno::Reference < css::embed::XEmbeddedObject > SvxMSDffManager::CheckForCo
pFilter = aMatch.GetFilter4EA( aType );
}
-#if OSL_DEBUG_LEVEL > 2
+#ifdef DEBUG_FILTER_MSFILTER
// extract embedded ole streams into "/tmp/embedded_stream_NNN"
static sal_Int32 nOleCount(0);
OUString aTmpName("/tmp/embedded_stream_");
diff --git a/filter/source/msfilter/mstoolbar.cxx b/filter/source/msfilter/mstoolbar.cxx
index 1a7df47f3dab..9367e78a8624 100644
--- a/filter/source/msfilter/mstoolbar.cxx
+++ b/filter/source/msfilter/mstoolbar.cxx
@@ -160,9 +160,8 @@ CustomToolBarImportHelper::createMenu( const OUString& rName, const uno::Referen
return bRes;
}
-#if OSL_DEBUG_LEVEL > 1
-void
-TBBase::indent_printf( FILE* fp, const char* format, ... )
+#ifdef DEBUG_FILTER_MSTOOLBAR
+void TBBase::indent_printf( FILE* fp, const char* format, ... )
{
va_list ap;
va_start ( ap, format );
@@ -206,7 +205,7 @@ bool TBCHeader::Read( SvStream &rS )
return true;
}
-#if OSL_DEBUG_LEVEL > 1
+#ifdef DEBUG_FILTER_MSTOOLBAR
void TBCHeader::Print( FILE* fp )
{
Indent a;
@@ -356,7 +355,7 @@ bool TBCData::ImportToolBarControl( CustomToolBarImportHelper& helper, std::vect
return true; // just ignore
}
-#if OSL_DEBUG_LEVEL > 1
+#ifdef DEBUG_FILTER_MSTOOLBAR
void TBCData::Print( FILE* fp )
{
Indent a;
@@ -407,7 +406,7 @@ TBCExtraInfo::Read( SvStream &rS )
return true;
}
-#if OSL_DEBUG_LEVEL > 1
+#ifdef DEBUG_FILTER_MSTOOLBAR
void
TBCExtraInfo::Print( FILE* fp )
{
@@ -452,7 +451,7 @@ bool TBCGeneralInfo::Read( SvStream &rS )
return true;
}
-#if OSL_DEBUG_LEVEL > 1
+#ifdef DEBUG_FILTER_MSFILTER
void
TBCGeneralInfo::Print( FILE* fp )
{
@@ -531,7 +530,7 @@ TBCMenuSpecific::Read( SvStream &rS)
return true;
}
-#if OSL_DEBUG_LEVEL > 1
+#ifdef DEBUG_FILTER_MSFILTER
void
TBCMenuSpecific::Print( FILE* fp )
{
@@ -586,7 +585,7 @@ bool TBCBSpecific::Read( SvStream &rS)
}
-#if OSL_DEBUG_LEVEL > 1
+#ifdef DEBUG_FILTER_MSFILTER
void TBCBSpecific::Print( FILE* fp )
{
Indent a;
@@ -643,7 +642,7 @@ bool TBCComboDropdownSpecific::Read( SvStream &rS)
return true;
}
-#if OSL_DEBUG_LEVEL > 1
+#ifdef DEBUG_FILTER_MSFILTER
void TBCComboDropdownSpecific::Print( FILE* fp)
{
Indent a;
@@ -690,7 +689,7 @@ bool TBCCDData::Read( SvStream &rS)
return wstrEdit.Read( rS );
}
-#if OSL_DEBUG_LEVEL > 1
+#ifdef DEBUG_FILTER_MSFILTER
void TBCCDData::Print( FILE* fp)
{
Indent a;
@@ -726,7 +725,7 @@ bool TBCBitMap::Read( SvStream& rS)
return ReadDIB(mBitMap, rS, false, true);
}
-#if OSL_DEBUG_LEVEL > 1
+#ifdef DEBUG_FILTER_MSTOOLBAR
void TBCBitMap::Print( FILE* fp )
{
Indent a;
@@ -760,7 +759,7 @@ bool TB::IsEnabled()
return ( bFlags & 0x01 ) != 0x01;
}
-#if OSL_DEBUG_LEVEL > 1
+#ifdef DEBUG_FILTER_MSTOOLBAR
void TB::Print( FILE* fp )
{
Indent a;
@@ -790,7 +789,7 @@ bool TBVisualData::Read( SvStream& rS )
return true;
}
-#if OSL_DEBUG_LEVEL > 1
+#ifdef DEBUG_FILTER_MSTOOLBAR
void SRECT::Print( FILE* fp )
{
Indent a;
@@ -801,7 +800,7 @@ void SRECT::Print( FILE* fp )
}
#endif
-#if OSL_DEBUG_LEVEL > 1
+#ifdef DEBUG_FILTER_MSTOOLBAR
void TBVisualData::Print( FILE* fp )
{
Indent a;
diff --git a/filter/source/svg/svgreader.cxx b/filter/source/svg/svgreader.cxx
index 8feb4bf5187e..4dcde82bc265 100644
--- a/filter/source/svg/svgreader.cxx
+++ b/filter/source/svg/svgreader.cxx
@@ -2076,7 +2076,7 @@ static void writeOfficeStyles( StateMap&
}
-#if OSL_DEBUG_LEVEL > 2
+#ifdef DEBUG_FILTER_SVGREADER
struct DumpingVisitor
{
void operator()( const uno::Reference<xml::dom::XElement>& xElem )
@@ -2114,7 +2114,7 @@ struct DumpingVisitor
static void dumpTree( const uno::Reference<xml::dom::XElement> xElem )
{
DumpingVisitor aVisitor;
- visitElements(aVisitor, xElem);
+ visitElements(aVisitor, xElem, STYLE_ANNOTATOR);
}
#endif
@@ -2284,7 +2284,7 @@ bool SVGReader::parseAndConvert()
annotateStyles(aStatePool,aStateMap,aInitialState,
xDocElem,m_xDocumentHandler,maUseElementVector);
-#if OSL_DEBUG_LEVEL > 2
+#ifdef DEBUG_FILTER_SVGREADER
dumpTree(xDocElem);
#endif
diff --git a/filter/source/xsltfilter/LibXSLTTransformer.cxx b/filter/source/xsltfilter/LibXSLTTransformer.cxx
index 1cb6fa7d70ee..4ec2c2a81b1f 100644
--- a/filter/source/xsltfilter/LibXSLTTransformer.cxx
+++ b/filter/source/xsltfilter/LibXSLTTransformer.cxx
@@ -294,7 +294,7 @@ namespace XSLT
xsltTransformContextPtr tcontext = nullptr;
exsltRegisterAll();
registerExtensionModule();
-#if OSL_DEBUG_LEVEL > 1
+#ifdef DEBUG_FILTER_LIBXSLTTRANSFORMER
xsltSetGenericDebugFunc(stderr, NULL);
xsltDebugDumpExtensions(NULL);
#endif