summaryrefslogtreecommitdiff
path: root/unoxml/source/dom/node.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unoxml/source/dom/node.cxx')
-rw-r--r--unoxml/source/dom/node.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/unoxml/source/dom/node.cxx b/unoxml/source/dom/node.cxx
index 0c5a846a27aa..5ce052f6d041 100644
--- a/unoxml/source/dom/node.cxx
+++ b/unoxml/source/dom/node.cxx
@@ -65,8 +65,11 @@ namespace DOM
{
void pushContext(Context& io_rContext)
{
- io_rContext.maNamespaces.push_back(
- io_rContext.maNamespaces.back());
+ // Explicitly use a temp. variable.
+ // Windows/VC++ seems to mess up if .back() is directly passed as
+ // parameter. i.e. Don't use push_back( .back() );
+ Context::NamespaceVectorType::value_type aVal = io_rContext.maNamespaces.back();
+ io_rContext.maNamespaces.push_back( aVal );
}
void popContext(Context& io_rContext)