summaryrefslogtreecommitdiff
path: root/src/xmlpatterns/data/qitem_p.h
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2016-08-01 11:15:38 +0200
committerLiang Qi <liang.qi@qt.io>2016-08-01 11:15:38 +0200
commit30a4041893c8132040cd982c9ca1204345801750 (patch)
tree39d35ef5a52becbf833608b8c86cd0c5bf8fe837 /src/xmlpatterns/data/qitem_p.h
parente0207675f2cb28713c9cfce1ecc5854a082d3d2c (diff)
parentc0b6fbcadbefcc8a91e5db7fd98662dddcd7a0f8 (diff)
downloadqtxmlpatterns-30a4041893c8132040cd982c9ca1204345801750.tar.gz
Merge remote-tracking branch 'origin/5.6' into 5.7
Change-Id: I0653ca8dd6a9b6ee2314911c7679a1c056dc3709
Diffstat (limited to 'src/xmlpatterns/data/qitem_p.h')
-rw-r--r--src/xmlpatterns/data/qitem_p.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/xmlpatterns/data/qitem_p.h b/src/xmlpatterns/data/qitem_p.h
index 1654bd9..a395b5e 100644
--- a/src/xmlpatterns/data/qitem_p.h
+++ b/src/xmlpatterns/data/qitem_p.h
@@ -111,8 +111,7 @@ namespace QPatternist
* @ingroup Patternist_xdm
* @author Frans Englich <frans.englich@nokia.com>
*/
- class AtomicValue : public QSharedData
- , public CppCastingHelper<AtomicValue>
+ class Q_AUTOTEST_EXPORT AtomicValue : public QSharedData, public CppCastingHelper<AtomicValue>
{
public:
virtual ~AtomicValue();
@@ -212,7 +211,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();