summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-11-25 19:52:45 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-11-26 20:47:21 (GMT)
commitc89ca078ba39780ebe556aff8fff6b92118a0a1d (patch)
treeb93b5633334d2877cbb55f5306a72c37e5a0a328 /src
parent86ed592bba2a7ef23f5065397144c3915bdbdbd5 (diff)
downloadQt-c89ca078ba39780ebe556aff8fff6b92118a0a1d.zip
Qt-c89ca078ba39780ebe556aff8fff6b92118a0a1d.tar.gz
Qt-c89ca078ba39780ebe556aff8fff6b92118a0a1d.tar.bz2
Fix "value not in enum" warning with GCC 4.5.
QMetaType::Float is not a member of QVariant::Type.
Diffstat (limited to 'src')
-rw-r--r--src/xmlpatterns/data/qatomicvalue.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmlpatterns/data/qatomicvalue.cpp b/src/xmlpatterns/data/qatomicvalue.cpp
index ecc78bf..fc4cf2e 100644
--- a/src/xmlpatterns/data/qatomicvalue.cpp
+++ b/src/xmlpatterns/data/qatomicvalue.cpp
@@ -202,7 +202,7 @@ ItemType::Ptr AtomicValue::qtToXDMType(const QXmlItem &item)
Q_ASSERT(item.isAtomicValue());
const QVariant v(item.toAtomicValue());
- switch(v.type())
+ switch(int(v.type()))
{
case QVariant::Char:
/* Fallthrough. */