summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2017-11-21 14:39:44 +0100
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2017-11-23 10:44:52 +0100
commita8e83ce1d86892061603159f5c4460803d077fd5 (patch)
treef82b82ef034f67a9c88e07a6e10a23f5447a9ade /oox
parentf85859d2146b29ed4dce17695efd4012a0fa1e1c (diff)
Convert fprintf to SAL_WARN / SAL_INFO
Change-Id: Ibdc67eb7af83c9ffa29531a20f68efce578f3e47 Reviewed-on: https://gerrit.libreoffice.org/45082 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/export/vmlexport.cxx13
1 files changed, 3 insertions, 10 deletions
diff --git a/oox/source/export/vmlexport.cxx b/oox/source/export/vmlexport.cxx
index b90b18977ec9..29034a9ba07b 100644
--- a/oox/source/export/vmlexport.cxx
+++ b/oox/source/export/vmlexport.cxx
@@ -93,10 +93,7 @@ void VMLExport::OpenContainer( sal_uInt16 nEscherContainer, int nRecInstance )
if ( nEscherContainer == ESCHER_SpContainer )
{
// opening a shape container
-#if OSL_DEBUG_LEVEL > 0
- if ( m_nShapeType != ESCHER_ShpInst_Nil )
- fprintf( stderr, "Warning! VMLExport::OpenContainer(): opening shape inside a shape.\n" );
-#endif
+ SAL_WARN_IF(m_nShapeType != ESCHER_ShpInst_Nil, "oox.vml", "opening shape inside of a shape!");
m_nShapeType = ESCHER_ShpInst_Nil;
m_pShapeAttrList = FastSerializerHelper::createAttrList();
@@ -589,10 +586,8 @@ void VMLExport::Commit( EscherPropertyContainer& rProps, const tools::Rectangle&
if ( !aPath.isEmpty() && pathString != "xe" )
m_pShapeAttrList->add( XML_path, pathString );
}
-#if OSL_DEBUG_LEVEL > 0
else
- fprintf( stderr, "TODO: unhandled shape path, missing either pVertices or pSegmentInfo.\n" );
-#endif
+ SAL_WARN("oox.vml", "unhandled shape path, missing either pVertices or pSegmentInfo.");
}
bAlreadyWritten[ ESCHER_Prop_pVertices ] = true;
bAlreadyWritten[ ESCHER_Prop_pSegmentInfo ] = true;
@@ -653,9 +648,7 @@ void VMLExport::Commit( EscherPropertyContainer& rProps, const tools::Rectangle&
// TODO case ESCHER_FillShadeTitle: pFillType = ""; break;
// TODO case ESCHER_FillBackground: pFillType = ""; break;
default:
- #if OSL_DEBUG_LEVEL > 0
- fprintf( stderr, "TODO: unhandled fill type\n" );
- #endif
+ SAL_INFO("oox.vml", "Uunhandled fill type: " << nValue);
break;
}
if ( pFillType )