QDBusSignature: add ctor taking QString&&
The new constructor cannot be marked nothrow, because it calls non-nothrow doCheck(); Change-Id: I732fac7a07d46a3ff3be0e4e56de72dd19090737 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
3a961702f0
commit
1251273232
@ -108,6 +108,9 @@ public:
|
||||
inline explicit QDBusSignature(const char *signature);
|
||||
inline explicit QDBusSignature(QLatin1String signature);
|
||||
inline explicit QDBusSignature(const QString &signature);
|
||||
#ifdef Q_COMPILER_RVALUE_REFS
|
||||
explicit QDBusSignature(QString &&sig) : m_signature(std::move(sig)) { doCheck(); }
|
||||
#endif
|
||||
|
||||
inline void setSignature(const QString &signature);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user