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)
This commit is contained in:
Muthu Subramanian
2012-06-08 19:04:37 +05:30
parent 1829efaf9f
commit 25dd603fe2

View File

@@ -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)