summaryrefslogtreecommitdiffstats
path: root/src/corelib/global
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@nokia.com>2011-05-23 07:27:23 (GMT)
committerLiang Qi <liang.qi@nokia.com>2011-05-23 07:58:25 (GMT)
commit32a583b575da1b387955734ccf36b0a93de37670 (patch)
tree87336ca68f6de667d9a256b010af38464b361399 /src/corelib/global
parentc19ff75707621b0c5bcb832da84921a0370d72a8 (diff)
downloadQt-32a583b575da1b387955734ccf36b0a93de37670.zip
Qt-32a583b575da1b387955734ccf36b0a93de37670.tar.gz
Qt-32a583b575da1b387955734ccf36b0a93de37670.tar.bz2
Fix the build for QUuid
Add a quint8 specialization for qbswap. Reviewed-by: Bradley T. Hughes
Diffstat (limited to 'src/corelib/global')
-rw-r--r--src/corelib/global/qendian.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/corelib/global/qendian.h b/src/corelib/global/qendian.h
index 566307b..1e95b43 100644
--- a/src/corelib/global/qendian.h
+++ b/src/corelib/global/qendian.h
@@ -363,6 +363,11 @@ template <typename T> inline void qToLittleEndian(T src, uchar *dest)
#endif // Q_BYTE_ORDER == Q_BIG_ENDIAN
+template <> inline quint8 qbswap<quint8>(quint8 source)
+{
+ return source;
+}
+
QT_END_NAMESPACE
QT_END_HEADER