From 6559c780893264b18a74fce42584cc1345363ef8 Mon Sep 17 00:00:00 2001
From: Henrik Hartz <henrik.hartz@nokia.com>
Date: Tue, 28 Jul 2009 11:10:07 +1000
Subject: Fixes:    Compile on winscw RevBy:    Frans Englich Details: 
 QHash::value creates an internal compiler error in this case on Metrowerks,
 using find instead

---
 src/xmlpatterns/parser/qmaintainingreader.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/xmlpatterns/parser/qmaintainingreader.cpp b/src/xmlpatterns/parser/qmaintainingreader.cpp
index 8569f05..292e0fd 100644
--- a/src/xmlpatterns/parser/qmaintainingreader.cpp
+++ b/src/xmlpatterns/parser/qmaintainingreader.cpp
@@ -147,7 +147,8 @@ void MaintainingReader<TokenLookupClass, LookupKey>::validateElement(const Looku
 
     if(m_elementDescriptions.contains(elementName))
     {
-        const ElementDescription<TokenLookupClass, LookupKey> &desc = m_elementDescriptions.value(elementName);
+        // QHash::value breaks in Metrowerks Compiler
+        const ElementDescription<TokenLookupClass, LookupKey> &desc = *m_elementDescriptions.find(elementName);
         const int attCount = m_currentAttributes.count();
 
         QSet<typename TokenLookupClass::NodeName> encounteredXSLTAtts;
-- 
cgit v0.12