[Libreoffice-commits] core.git: dbaccess/source sc/source
Markus Mohrhard
markus.mohrhard at googlemail.com
Wed Feb 3 04:32:32 UTC 2016
dbaccess/source/filter/xml/xmlfilter.cxx | 4 +---
sc/source/filter/xml/xmldpimp.cxx | 2 +-
2 files changed, 2 insertions(+), 4 deletions(-)
New commits:
commit 3d3204be2c1c8c3aded94cdf3d2ead7958c8b2f1
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Wed Feb 3 05:25:10 2016 +0100
fix previous commit
Change-Id: I3e3b0cf703162b5f01148aced9a1d5faabb5d50d
diff --git a/dbaccess/source/filter/xml/xmlfilter.cxx b/dbaccess/source/filter/xml/xmlfilter.cxx
index 5453f39..6401113 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 891db22..56d7340 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()
More information about the Libreoffice-commits
mailing list