diff options
author | Muthu Subramanian <sumuthu@suse.com> | 2012-06-08 19:04:37 +0530 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-06-12 13:27:42 +0200 |
commit | ab25d4c548408cfaeec8a61a0d17252d3085a6a1 (patch) | |
tree | d95144662231b4cb636df0d510a4ace2fbd14710 | |
parent | c203a292ff523ae4e4d4d9ac70166f281a141fcc (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)
(cherry picked from commit 25dd603fe2044f35341fe0c6d0b632c9295a824e)
Signed-off-by: Michael Stahl <mstahl@redhat.com>
-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 8cbcfc534a7d..01888b4cea89 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) |