summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-02-03 05:25:10 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-02-03 05:31:25 +0100
commit3d3204be2c1c8c3aded94cdf3d2ead7958c8b2f1 (patch)
treec8f15f537333e838f1271adc23ed32b37fce89ff
parentbd76d319bbda17f242e64b042027077e84c0f1d9 (diff)
fix previous commit
Change-Id: I3e3b0cf703162b5f01148aced9a1d5faabb5d50d
-rw-r--r--dbaccess/source/filter/xml/xmlfilter.cxx4
-rw-r--r--sc/source/filter/xml/xmldpimp.cxx2
2 files changed, 2 insertions, 4 deletions
diff --git a/dbaccess/source/filter/xml/xmlfilter.cxx b/dbaccess/source/filter/xml/xmlfilter.cxx
index 5453f39ce916..640111316075 100644
--- a/dbaccess/source/filter/xml/xmlfilter.cxx
+++ b/dbaccess/source/filter/xml/xmlfilter.cxx
@@ -700,9 +700,7 @@ const SvXMLTokenMap& ODBFilter::GetColumnElemTokenMap() const
SvXMLImportContext* ODBFilter::CreateStylesContext(sal_uInt16 _nPrefix,const OUString& rLocalName,
const uno::Reference< XAttributeList>& xAttrList, bool bIsAutoStyle )
{
- SvXMLImportContext *pContext;
-
- pContext = new OTableStylesContext(*this, _nPrefix, rLocalName, xAttrList, bIsAutoStyle);
+ SvXMLImportContext *pContext = new OTableStylesContext(*this, _nPrefix, rLocalName, xAttrList, bIsAutoStyle);
if (bIsAutoStyle)
SetAutoStyles(static_cast<SvXMLStylesContext*>(pContext));
else
diff --git a/sc/source/filter/xml/xmldpimp.cxx b/sc/source/filter/xml/xmldpimp.cxx
index 891db2223f1a..56d7340403e7 100644
--- a/sc/source/filter/xml/xmldpimp.cxx
+++ b/sc/source/filter/xml/xmldpimp.cxx
@@ -732,7 +732,7 @@ SvXMLImportContext *ScXMLDPSourceQueryContext::CreateChildContext( sal_uInt16 nP
const OUString& rLName,
const css::uno::Reference<css::xml::sax::XAttributeList>& /* xAttrList */ )
{
- return pContext = new SvXMLImportContext( GetImport(), nPrefix, rLName );
+ return new SvXMLImportContext( GetImport(), nPrefix, rLName );
}
void ScXMLDPSourceQueryContext::EndElement()