diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2010-11-25 19:52:45 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2010-11-26 20:47:21 (GMT) |
commit | c89ca078ba39780ebe556aff8fff6b92118a0a1d (patch) | |
tree | b93b5633334d2877cbb55f5306a72c37e5a0a328 /src | |
parent | 86ed592bba2a7ef23f5065397144c3915bdbdbd5 (diff) | |
download | Qt-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.cpp | 2 |
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. */ |