[Libreoffice-commits] core.git: xmloff/source
Jochen Nitschke
j.nitschke+logerrit at ok.de
Sun Jul 1 11:43:29 UTC 2018
xmloff/source/chart/SchXMLExport.cxx | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
New commits:
commit d2a9fdda9af20954d16e1bb05e106a384a608351
Author: Jochen Nitschke <j.nitschke+logerrit at ok.de>
Date: Sat Jun 30 20:34:25 2018 +0200
cppcheck: variableScope
Change-Id: Ic175a141cc6b6e98e66da7bc34ee77090236c9b6
Reviewed-on: https://gerrit.libreoffice.org/56767
Tested-by: Jenkins
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit at ok.de>
diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx
index 5b9dea65ff5f..f29f7ae80af8 100644
--- a/xmloff/source/chart/SchXMLExport.cxx
+++ b/xmloff/source/chart/SchXMLExport.cxx
@@ -2884,9 +2884,6 @@ void SchXMLExportHelper_Impl::exportRegressionCurve(
{
OSL_ASSERT( mxExpPropMapper.is());
- std::vector< XMLPropertyState > aPropertyStates;
- std::vector< XMLPropertyState > aEquationPropertyStates;
-
Reference< chart2::XRegressionCurveContainer > xRegressionCurveContainer( xSeries, uno::UNO_QUERY );
if( xRegressionCurveContainer.is() )
{
@@ -2898,6 +2895,7 @@ void SchXMLExportHelper_Impl::exportRegressionCurve(
for( pIt = pBeg; pIt != pEnd; pIt++ )
{
+ std::vector< XMLPropertyState > aEquationPropertyStates;
Reference< chart2::XRegressionCurve > xRegCurve = *pIt;
if (!xRegCurve.is())
continue;
@@ -2917,7 +2915,7 @@ void SchXMLExportHelper_Impl::exportRegressionCurve(
OUString aService;
aService = xServiceName->getServiceName();
- aPropertyStates = mxExpPropMapper->Filter( xProperties );
+ std::vector< XMLPropertyState > aPropertyStates = mxExpPropMapper->Filter( xProperties );
// Add service name (which is regression type)
sal_Int32 nIndex = GetPropertySetMapper()->FindEntryIndex(XML_SCH_CONTEXT_SPECIAL_REGRESSION_TYPE);
More information about the Libreoffice-commits
mailing list