diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-04-05 15:34:38 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-04-05 18:34:22 +0200 |
commit | 2c59f12e5a9b062f91d6f0b85d4b6196728c689c (patch) | |
tree | 7eac4af77a12ce87f0e6cd1caeb728bc4898e9ea /xmloff | |
parent | prevent excessive exceptions (diff) | |
download | core-2c59f12e5a9b062f91d6f0b85d4b6196728c689c.tar.gz core-2c59f12e5a9b062f91d6f0b85d4b6196728c689c.zip |
no need for member variable and bool variable
Change-Id: I58dc22fdec3db8280506a92fe16065cc5482c357
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/chart/SchXMLSeries2Context.cxx | 9 | ||||
-rw-r--r-- | xmloff/source/chart/SchXMLSeries2Context.hxx | 1 |
2 files changed, 4 insertions, 6 deletions
diff --git a/xmloff/source/chart/SchXMLSeries2Context.cxx b/xmloff/source/chart/SchXMLSeries2Context.cxx index bbea32ebed30..795effbbbe30 100644 --- a/xmloff/source/chart/SchXMLSeries2Context.cxx +++ b/xmloff/source/chart/SchXMLSeries2Context.cxx @@ -307,7 +307,7 @@ void SchXMLSeries2Context::StartElement( const uno::Reference< xml::sax::XAttrib mnAttachedAxis = 1; bool bHasRange = false; - bool bHasLabelRange = false; + OUString aSeriesLabelRange; for( sal_Int16 i = 0; i < nAttrCount; i++ ) { @@ -323,8 +323,7 @@ void SchXMLSeries2Context::StartElement( const uno::Reference< xml::sax::XAttrib bHasRange = true; break; case XML_TOK_SERIES_LABEL_ADDRESS: - m_aSeriesLabelRange = aValue; - bHasLabelRange = true; + aSeriesLabelRange = aValue; break; case XML_TOK_SERIES_ATTACHED_AXIS: { @@ -437,10 +436,10 @@ void SchXMLSeries2Context::StartElement( const uno::Reference< xml::sax::XAttrib tSchXMLIndexWithPart( m_rGlobalSeriesImportInfo.nCurrentDataIndex, SCH_XML_PART_VALUES ), xLabeledSeq )); // label - if( bHasLabelRange && !m_aSeriesLabelRange.isEmpty() ) + if( !aSeriesLabelRange.isEmpty() ) { Reference< chart2::data::XDataSequence > xLabelSequence = - SchXMLTools::CreateDataSequence( m_aSeriesLabelRange, mxNewDoc ); + SchXMLTools::CreateDataSequence( aSeriesLabelRange, mxNewDoc ); xLabeledSeq->setLabel( xLabelSequence ); } diff --git a/xmloff/source/chart/SchXMLSeries2Context.hxx b/xmloff/source/chart/SchXMLSeries2Context.hxx index a4974ce98ff4..ee78f4ceede7 100644 --- a/xmloff/source/chart/SchXMLSeries2Context.hxx +++ b/xmloff/source/chart/SchXMLSeries2Context.hxx @@ -64,7 +64,6 @@ private: OUString maGlobalChartTypeName; OUString maSeriesChartTypeName; OUString m_aSeriesRange; - OUString m_aSeriesLabelRange; bool m_bHasDomainContext; tSchXMLLSequencesPerIndex & mrLSequencesPerIndex; tSchXMLLSequencesPerIndex maPostponedSequences; |