summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Hartz <henrik.hartz@nokia.com>2009-07-28 01:10:07 (GMT)
committerHenrik Hartz <henrik.hartz@nokia.com>2009-07-28 01:10:07 (GMT)
commit6559c780893264b18a74fce42584cc1345363ef8 (patch)
treea4f082e5be43e6961ce09a8b7d83cb15a92640cb
parenta65a659eee21f451f0bad833c8498cf74158fd18 (diff)
downloadQt-6559c780893264b18a74fce42584cc1345363ef8.zip
Qt-6559c780893264b18a74fce42584cc1345363ef8.tar.gz
Qt-6559c780893264b18a74fce42584cc1345363ef8.tar.bz2
Fixes: Compile on winscw
RevBy: Frans Englich Details: QHash::value creates an internal compiler error in this case on Metrowerks, using find instead
-rw-r--r--src/xmlpatterns/parser/qmaintainingreader.cpp3
1 files changed, 2 insertions, 1 deletions
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;