summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2018-06-30 20:34:25 +0200
committerJochen Nitschke <j.nitschke+logerrit@ok.de>2018-07-01 13:43:09 +0200
commitd2a9fdda9af20954d16e1bb05e106a384a608351 (patch)
treee6f9838c0e1001e23bc0a5021e3e9070a8042c51 /xmloff
parentcaa9e875a333b804a5914cf52cde21aa3ae94fd6 (diff)
cppcheck: variableScope
Change-Id: Ic175a141cc6b6e98e66da7bc34ee77090236c9b6 Reviewed-on: https://gerrit.libreoffice.org/56767 Tested-by: Jenkins Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/chart/SchXMLExport.cxx6
1 files changed, 2 insertions, 4 deletions
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);