Kaydet (Commit) 2e32eff6 authored tarafından Miklos Vajna's avatar Miklos Vajna

Use SAL_WARN{,_IF}

Change-Id: Idd4693bd48b4bbe3ebfb5c86922ab0edfeba0def
üst f43dd61f
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include <ConversionHelper.hxx> #include <ConversionHelper.hxx>
#include <ooxml/resourceids.hxx> #include <ooxml/resourceids.hxx>
#include <comphelper/sequence.hxx> #include <comphelper/sequence.hxx>
#include <osl/diagnose.h>
namespace writerfilter { namespace writerfilter {
namespace dmapper { namespace dmapper {
...@@ -61,11 +60,11 @@ void CellMarginHandler::lcl_attribute(Id rName, Value & rVal) ...@@ -61,11 +60,11 @@ void CellMarginHandler::lcl_attribute(Id rName, Value & rVal)
m_nValue = ConversionHelper::convertTwipToMM100Unsigned( nIntValue ); m_nValue = ConversionHelper::convertTwipToMM100Unsigned( nIntValue );
break; break;
case NS_ooxml::LN_CT_TblWidth_type: case NS_ooxml::LN_CT_TblWidth_type:
OSL_ENSURE( NS_ooxml::LN_Value_ST_TblWidth_dxa == sal::static_int_cast<Id>(nIntValue), "cell margins work for absolute values, only"); SAL_WARN_IF(NS_ooxml::LN_Value_ST_TblWidth_dxa != sal::static_int_cast<Id>(nIntValue), "writerfilter", "CellMarginHandler: cell margins work for absolute values only");
m_nType = nIntValue; m_nType = nIntValue;
break; break;
default: default:
OSL_FAIL( "unknown attribute"); SAL_WARN("writerfilter", "CellMarginHandler::lcl_attribute: unknown attribute");
} }
} }
...@@ -153,7 +152,7 @@ void CellMarginHandler::lcl_sprm(Sprm & rSprm) ...@@ -153,7 +152,7 @@ void CellMarginHandler::lcl_sprm(Sprm & rSprm)
createGrabBag("right"); createGrabBag("right");
break; break;
default: default:
OSL_FAIL( "unknown sprm"); SAL_WARN("writerfilter", "CellMarginHandler::lcl_sprm: unknown sprm");
} }
} }
m_nValue = 0; m_nValue = 0;
......
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