QRegExp: mark existing move assignment operator and swap() nothrow
Change-Id: Iad9adc1cb9ea72689c81624caae2fe5a9e02e591 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>bb10
parent
d3a21a18de
commit
f679a44f51
|
|
@ -68,10 +68,9 @@ public:
|
|||
~QRegExp();
|
||||
QRegExp &operator=(const QRegExp &rx);
|
||||
#ifdef Q_COMPILER_RVALUE_REFS
|
||||
inline QRegExp &operator=(QRegExp &&other)
|
||||
{ qSwap(priv,other.priv); return *this; }
|
||||
QRegExp &operator=(QRegExp &&other) Q_DECL_NOTHROW { swap(other); return *this; }
|
||||
#endif
|
||||
inline void swap(QRegExp &other) { qSwap(priv, other.priv); }
|
||||
void swap(QRegExp &other) Q_DECL_NOTHROW { qSwap(priv, other.priv); }
|
||||
|
||||
bool operator==(const QRegExp &rx) const;
|
||||
inline bool operator!=(const QRegExp &rx) const { return !operator==(rx); }
|
||||
|
|
|
|||
Loading…
Reference in New Issue