diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-08-09 13:27:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-08-10 12:13:29 +0100 |
commit | f84b07c57185fee4ad5f1f9a6276c7a9db54e00a (patch) | |
tree | b49c30c3b537557fde4030cb53ec93522492f213 | |
parent | f2ca8ff2e68281abf6b1d805f9fd17bf0d4e7750 (diff) |
cppcheck: variableScope
Change-Id: I41270ad017dd16567c9b68df6044f182eec0b4ce
-rw-r--r-- | reportdesign/source/filter/xml/xmlExport.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/reportdesign/source/filter/xml/xmlExport.cxx b/reportdesign/source/filter/xml/xmlExport.cxx index 5f6e9e707958..26c25515c06d 100644 --- a/reportdesign/source/filter/xml/xmlExport.cxx +++ b/reportdesign/source/filter/xml/xmlExport.cxx @@ -905,17 +905,15 @@ void ORptExport::exportContainer(const Reference< XSection>& _xSection) { } - bool bPageSet = false; if ( bExportData ) { - bPageSet = exportFormula(XML_FORMULA,xReportElement->getDataField()); + const bool bPageSet = exportFormula(XML_FORMULA,xReportElement->getDataField()); if ( bPageSet ) eToken = XML_FIXED_CONTENT; else if ( eToken == XML_IMAGE ) AddAttribute(XML_NAMESPACE_REPORT, XML_PRESERVE_IRI, xImage->getPreserveIRI() ? XML_TRUE : XML_FALSE ); } - //if ( !bPageSet ) { // start <report:eToken> SvXMLElementExport aComponents(*this,XML_NAMESPACE_REPORT, eToken, false, false); |