summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-07-18 11:51:57 +0300
committerMarc Mutz <marc.mutz@kdab.com>2016-07-19 07:11:02 +0000
commitb4b17b2035ce38b1bf4d90458d4c64dc9551c733 (patch)
treeb6be5cceb363a688775dfefa74580e16deb6c04e /src
parent03f392f887132d5a2185627eef02db9ecf793396 (diff)
downloadqtxmlpatterns-b4b17b2035ce38b1bf4d90458d4c64dc9551c733.tar.gz
Item: replace a Q_ASSERT with a Q_STATIC_ASSERT
Change-Id: I32927731c73b5335f2589c0754ffef2cf0d5ed3f Reviewed-by: Tobias Koenig <tobias.koenig@kdab.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/xmlpatterns/data/qitem_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmlpatterns/data/qitem_p.h b/src/xmlpatterns/data/qitem_p.h
index c5a168d..d470f45 100644
--- a/src/xmlpatterns/data/qitem_p.h
+++ b/src/xmlpatterns/data/qitem_p.h
@@ -205,7 +205,7 @@ namespace QPatternist
inline Item(const Item &other) : node(other.node)
{
- Q_ASSERT_X(sizeof(QXmlNodeModelIndex) >= sizeof(AtomicValue), Q_FUNC_INFO,
+ Q_STATIC_ASSERT_X(sizeof(QXmlNodeModelIndex) >= sizeof(AtomicValue),
"Since we're only copying the node member, it must be the largest.");
if(isAtomicValue())
atomicValue->ref.ref();