[Libreoffice-commits] core.git: xmloff/source
Tor Lillqvist
tlillqvist at suse.com
Wed May 22 04:55:47 PDT 2013
xmloff/source/core/DomExport.cxx | 2 +-
xmloff/source/script/XMLEventExport.cxx | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 2dec489ebb75030ffaeaa6daf7d42472e23a5eb6
Author: Tor Lillqvist <tlillqvist at suse.com>
Date: Wed May 22 14:48:36 2013 +0300
WaE: function will cause runtime stack overflow
Revert misguided changes from 6a043e9c0acff20e1618ca8ec15c21d5d0fd0d37
that obviously would cause endless recursion if these functions were
ever entered.
Thanks to MSVC2012 for the nice warning.
Change-Id: I8504aa8ac141164ec6e026cc4fa873f8273f92bd
diff --git a/xmloff/source/core/DomExport.cxx b/xmloff/source/core/DomExport.cxx
index ca1190d..7e87c62 100644
--- a/xmloff/source/core/DomExport.cxx
+++ b/xmloff/source/core/DomExport.cxx
@@ -129,7 +129,7 @@ void visitNode( DomVisitor& rVisitor, const Reference<XNode>& xNode )
void visit( DomVisitor& rVisitor, const Reference<XDocument>& xDocument )
{
- visit( rVisitor, xDocument );
+ visit( rVisitor, Reference<XNode>( xDocument, UNO_QUERY_THROW ) );
}
void visit( DomVisitor& rVisitor, const Reference<XNode>& xNode )
diff --git a/xmloff/source/script/XMLEventExport.cxx b/xmloff/source/script/XMLEventExport.cxx
index 4ddde6e..e619d96 100644
--- a/xmloff/source/script/XMLEventExport.cxx
+++ b/xmloff/source/script/XMLEventExport.cxx
@@ -106,7 +106,8 @@ void XMLEventExport::Export( Reference<XEventsSupplier> & rSupplier,
void XMLEventExport::Export( Reference<XNameReplace> & rReplace,
sal_Bool bWhitespace)
{
- Export(rReplace, bWhitespace);
+ Reference<XNameAccess> xAccess(rReplace, UNO_QUERY);
+ Export(xAccess, bWhitespace);
}
void XMLEventExport::Export( Reference<XNameAccess> & rAccess,
More information about the Libreoffice-commits
mailing list