qvariant: Pass a couple of large types by const-ref in Qt6
sizeof is approx 100 bytes Change-Id: Ibd5fb50674effee832ce4529d737c060c570ffa3 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>bb10
parent
e3d0ea7680
commit
b549758c61
|
|
@ -3832,7 +3832,11 @@ QDebug operator<<(QDebug dbg, const QVariant::Type p)
|
|||
/*!
|
||||
\internal
|
||||
*/
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||
QSequentialIterable::QSequentialIterable(QtMetaTypePrivate::QSequentialIterableImpl impl)
|
||||
#else
|
||||
QSequentialIterable::QSequentialIterable(const QtMetaTypePrivate::QSequentialIterableImpl &impl)
|
||||
#endif
|
||||
: m_impl(impl)
|
||||
{
|
||||
}
|
||||
|
|
@ -4140,7 +4144,11 @@ QSequentialIterable::const_iterator QSequentialIterable::const_iterator::operato
|
|||
/*!
|
||||
\internal
|
||||
*/
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||
QAssociativeIterable::QAssociativeIterable(QtMetaTypePrivate::QAssociativeIterableImpl impl)
|
||||
#else
|
||||
QAssociativeIterable::QAssociativeIterable(const QtMetaTypePrivate::QAssociativeIterableImpl &impl)
|
||||
#endif
|
||||
: m_impl(impl)
|
||||
{
|
||||
}
|
||||
|
|
|
|||
|
|
@ -607,7 +607,11 @@ public:
|
|||
|
||||
friend struct const_iterator;
|
||||
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||
explicit QSequentialIterable(QtMetaTypePrivate::QSequentialIterableImpl impl);
|
||||
#else
|
||||
explicit QSequentialIterable(const QtMetaTypePrivate::QSequentialIterableImpl &impl);
|
||||
#endif
|
||||
|
||||
const_iterator begin() const;
|
||||
const_iterator end() const;
|
||||
|
|
@ -660,7 +664,11 @@ public:
|
|||
|
||||
friend struct const_iterator;
|
||||
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||
explicit QAssociativeIterable(QtMetaTypePrivate::QAssociativeIterableImpl impl);
|
||||
#else
|
||||
explicit QAssociativeIterable(const QtMetaTypePrivate::QAssociativeIterableImpl &impl);
|
||||
#endif
|
||||
|
||||
const_iterator begin() const;
|
||||
const_iterator end() const;
|
||||
|
|
|
|||
Loading…
Reference in New Issue