summaryrefslogtreecommitdiff
path: root/xmloff/source/chart
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-02-25 11:33:33 +0200
committerNoel Grandin <noel@peralex.com>2016-02-25 11:42:35 +0200
commit4fbf95deba87ed28ee8eb8442477832e46ba76c6 (patch)
tree2a1628497cc891de6ede5f5b33613e6e4deb63ef /xmloff/source/chart
parentf66d734bcd994cb5fc2f38a8d9018e13385cd10c (diff)
new loplugin:unuseddefaultparams
Change-Id: I2c3e7d66be9e3883ea2801ff394948cc580d1e44
Diffstat (limited to 'xmloff/source/chart')
-rw-r--r--xmloff/source/chart/SchXMLExport.cxx12
-rw-r--r--xmloff/source/chart/SchXMLSeries2Context.cxx9
2 files changed, 8 insertions, 13 deletions
diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx
index 2fe0d19b7cad..694dd6f38f6b 100644
--- a/xmloff/source/chart/SchXMLExport.cxx
+++ b/xmloff/source/chart/SchXMLExport.cxx
@@ -237,9 +237,9 @@ public:
void addPosition( css::uno::Reference< css::drawing::XShape > xShape );
/// add svg size as attribute for current element
void addSize( const css::awt::Size & rSize, bool bIsOOoNamespace = false );
- void addSize( css::uno::Reference< css::drawing::XShape > xShape, bool bIsOOoNamespace = false );
+ void addSize( css::uno::Reference< css::drawing::XShape > xShape );
/// exports a string as a paragraph element
- void exportText( const OUString& rText, bool bConvertTabsLFs = false );
+ void exportText( const OUString& rText );
public:
SvXMLExport& mrExport;
@@ -3476,10 +3476,10 @@ void SchXMLExportHelper_Impl::addSize( const awt::Size & rSize, bool bIsOOoNames
mrExport.AddAttribute( bIsOOoNamespace ? XML_NAMESPACE_CHART_EXT : XML_NAMESPACE_SVG, XML_HEIGHT, msString );
}
-void SchXMLExportHelper_Impl::addSize( Reference< drawing::XShape > xShape, bool bIsOOoNamespace )
+void SchXMLExportHelper_Impl::addSize( Reference< drawing::XShape > xShape )
{
if( xShape.is())
- addSize( xShape->getSize(), bIsOOoNamespace );
+ addSize( xShape->getSize() );
}
awt::Size SchXMLExportHelper_Impl::getPageSize( const Reference< chart2::XChartDocument > & xChartDoc )
@@ -3510,9 +3510,9 @@ void SchXMLExportHelper_Impl::AddAutoStyleAttribute( const std::vector< XMLPrope
}
}
-void SchXMLExportHelper_Impl::exportText( const OUString& rText, bool bConvertTabsLFs )
+void SchXMLExportHelper_Impl::exportText( const OUString& rText )
{
- SchXMLTools::exportText( mrExport, rText, bConvertTabsLFs );
+ SchXMLTools::exportText( mrExport, rText, false/*bConvertTabsLFs*/ );
}
// class SchXMLExport
diff --git a/xmloff/source/chart/SchXMLSeries2Context.cxx b/xmloff/source/chart/SchXMLSeries2Context.cxx
index 644052dbf1f2..3be3a2218117 100644
--- a/xmloff/source/chart/SchXMLSeries2Context.cxx
+++ b/xmloff/source/chart/SchXMLSeries2Context.cxx
@@ -179,15 +179,10 @@ void lcl_resetSymbolSizeForPointsIfNecessary( const uno::Reference< beans::XProp
void lcl_insertErrorBarLSequencesToMap(
tSchXMLLSequencesPerIndex & rInOutMap,
- const uno::Reference< beans::XPropertySet > & xSeriesProp,
- bool bYError = true )
+ const uno::Reference< beans::XPropertySet > & xSeriesProp )
{
Reference< chart2::data::XDataSource > xErrorBarSource;
- const OUString aPropName(
- bYError
- ? OUString( "ErrorBarY" )
- : OUString( "ErrorBarX" ));
- if( ( xSeriesProp->getPropertyValue( aPropName ) >>= xErrorBarSource ) &&
+ if( ( xSeriesProp->getPropertyValue( "ErrorBarY" ) >>= xErrorBarSource ) &&
xErrorBarSource.is() )
{
Sequence< Reference< chart2::data::XLabeledDataSequence > > aLSequences(