summaryrefslogtreecommitdiffstats
path: root/xmloff/source/chart/SchXMLChartContext.cxx
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-01 19:07:44 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-02 15:04:37 +0100
commit65c053ca1a5a8c7318ab1e42cdde2d540a283673 (patch)
tree2e1a29f5d832ff0cb0d4c095f038392b472459d1 /xmloff/source/chart/SchXMLChartContext.cxx
parentRemove DBG_UTILx (diff)
downloadcore-65c053ca1a5a8c7318ab1e42cdde2d540a283673.tar.gz
core-65c053ca1a5a8c7318ab1e42cdde2d540a283673.zip
Move DBG_ERROR to OSL_FAIL
Diffstat (limited to 'xmloff/source/chart/SchXMLChartContext.cxx')
-rw-r--r--xmloff/source/chart/SchXMLChartContext.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/xmloff/source/chart/SchXMLChartContext.cxx b/xmloff/source/chart/SchXMLChartContext.cxx
index 085e24428aa7..b448f0658248 100644
--- a/xmloff/source/chart/SchXMLChartContext.cxx
+++ b/xmloff/source/chart/SchXMLChartContext.cxx
@@ -111,13 +111,13 @@ uno::Reference< chart2::XChartTypeTemplate > lcl_getTemplate( const uno::Referen
}
catch( uno::Exception & )
{
- DBG_ERROR( "Exception during determination of chart type template" );
+ OSL_FAIL( "Exception during determination of chart type template" );
}
}
}
catch( uno::Exception & )
{
- DBG_ERROR( "Exception during import lcl_getTemplate" );
+ OSL_FAIL( "Exception during import lcl_getTemplate" );
}
return xResult;
}
@@ -399,7 +399,7 @@ void SchXMLChartContext::StartElement( const uno::Reference< xml::sax::XAttribut
if( aOldChartTypeName.getLength()<= 0 )
{
- DBG_ERROR( "need a charttype to create a diagram" );
+ OSL_FAIL( "need a charttype to create a diagram" );
//set a fallback value:
::rtl::OUString aChartClass_Bar( GetXMLToken(XML_BAR ) );
aOldChartTypeName = SchXMLTools::GetChartTypeByClassName( aChartClass_Bar, true /* bUseOldNames */ );
@@ -427,7 +427,7 @@ void SchXMLChartContext::StartElement( const uno::Reference< xml::sax::XAttribut
}
catch( uno::Exception & )
{
- DBG_ERROR( "Exception during import SchXMLChartContext::StartElement" );
+ OSL_FAIL( "Exception during import SchXMLChartContext::StartElement" );
}
}
}
@@ -766,7 +766,7 @@ void SchXMLChartContext::EndElement()
}
catch( beans::UnknownPropertyException )
{
- DBG_ERROR( "Property String for Title not available" );
+ OSL_FAIL( "Property String for Title not available" );
}
}
}
@@ -783,7 +783,7 @@ void SchXMLChartContext::EndElement()
}
catch( beans::UnknownPropertyException )
{
- DBG_ERROR( "Property String for Title not available" );
+ OSL_FAIL( "Property String for Title not available" );
}
}
}
@@ -886,7 +886,7 @@ void SchXMLChartContext::EndElement()
catch( uno::Exception & )
{
//try to fallback to internal data
- DBG_ERROR( "Exception during import SchXMLChartContext::lcl_ApplyDataFromRectangularRangeToDiagram try to fallback to internal data" );
+ OSL_FAIL( "Exception during import SchXMLChartContext::lcl_ApplyDataFromRectangularRangeToDiagram try to fallback to internal data" );
if(!bHasOwnData)
{
bHasOwnData = true;
@@ -901,7 +901,7 @@ void SchXMLChartContext::EndElement()
}
catch( uno::Exception & )
{
- DBG_ERROR( "Exception during import SchXMLChartContext::lcl_ApplyDataFromRectangularRangeToDiagram fallback to internal data failed also" );
+ OSL_FAIL( "Exception during import SchXMLChartContext::lcl_ApplyDataFromRectangularRangeToDiagram fallback to internal data failed also" );
}
}
}
@@ -910,7 +910,7 @@ void SchXMLChartContext::EndElement()
}
else
{
- DBG_ERROR( " Must not get here" );
+ OSL_FAIL( " Must not get here" );
}
// now all series and data point properties are available and can be set
@@ -1053,7 +1053,7 @@ void SchXMLChartContext::MergeSeriesForStockChart()
}
catch( uno::Exception & )
{
- DBG_ERROR( "Exception while merging series for stock chart" );
+ OSL_FAIL( "Exception while merging series for stock chart" );
}
}
@@ -1326,7 +1326,7 @@ void SchXMLLegendContext::StartElement( const uno::Reference< xml::sax::XAttribu
}
catch( beans::UnknownPropertyException )
{
- DBG_ERROR( "Property HasLegend not found" );
+ OSL_FAIL( "Property HasLegend not found" );
}
}
@@ -1367,7 +1367,7 @@ void SchXMLLegendContext::StartElement( const uno::Reference< xml::sax::XAttribu
}
catch( beans::UnknownPropertyException )
{
- DBG_ERROR( "Property Alignment (legend) not found" );
+ OSL_FAIL( "Property Alignment (legend) not found" );
}
}
}