diff options
author | Muthu Subramanian <sumuthu@suse.com> | 2012-06-08 19:04:37 +0530 |
---|---|---|
committer | Muthu Subramanian <sumuthu@suse.com> | 2012-06-08 19:09:19 +0530 |
commit | 25dd603fe2044f35341fe0c6d0b632c9295a824e (patch) | |
tree | afd13d2695186449a2a4867899b6d9f5362aafbb /unoxml/source/dom | |
parent | 1829efaf9f5d9af9d51b01d273c7b6c60970b05d (diff) |
n759982: Win/VC++ stl messes up the namespace vector.
Every file's first element wasn't imported. This fixes the issue.
(everyfile = everyfile imported via that path e.g. theme?.xml)
Diffstat (limited to 'unoxml/source/dom')
-rw-r--r-- | unoxml/source/dom/node.cxx | 7 |
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) |