QDBusVariant: add ctor taking QVariant&&
Change-Id: Ia25c4bd6294955b0e8ea5ecc0c62719423542e84 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
27ba0b8f88
commit
a1ef018d9c
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user