QImage: Added a move constructor.
[QTBUG-30517] Change-Id: I173de783ef8113ab10fb553cc82ef60904a15400 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>bb10
parent
adcc9a196a
commit
8c857622f0
|
|
@ -139,6 +139,11 @@ public:
|
|||
explicit QImage(const QString &fileName, const char *format = 0);
|
||||
|
||||
QImage(const QImage &);
|
||||
#ifdef Q_COMPILER_RVALUE_REFS
|
||||
inline QImage(QImage &&other)
|
||||
: QPaintDevice(), d(0)
|
||||
{ qSwap(d, other.d); }
|
||||
#endif
|
||||
~QImage();
|
||||
|
||||
QImage &operator=(const QImage &);
|
||||
|
|
|
|||
Loading…
Reference in New Issue