QDBusVariant: add ctor taking QVariant&&

Change-Id: Ia25c4bd6294955b0e8ea5ecc0c62719423542e84
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Marc Mutz 2015-07-08 01:22:17 +02:00
parent 27ba0b8f88
commit a1ef018d9c

View File

@ -160,6 +160,9 @@ class QDBusVariant
public:
inline QDBusVariant() { }
inline explicit QDBusVariant(const QVariant &variant);
#ifdef Q_COMPILER_RVALUE_REFS
explicit QDBusVariant(QVariant &&v) Q_DECL_NOTHROW : m_variant(std::move(v)) {}
#endif
inline void setVariant(const QVariant &variant);