diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-03-16 12:59:26 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-03-16 13:30:51 +0100 |
commit | 2e03a8135025e60dd6f9de5a0b4e115085a382f0 (patch) | |
tree | 73bc0392c9605d1a7f6a66736397bbdcdd5f40ea /src/pdf/api/qpdfselection.h | |
parent | 0f9e8f15e6ed95c225fe3b6f9aaa22288987c9a2 (diff) |
Add move constructors
To complete the set when we already have move assign operators
Change-Id: I50ac1d76f1acc76faeac0db6078d72d275b77bb0
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/pdf/api/qpdfselection.h')
-rw-r--r-- | src/pdf/api/qpdfselection.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pdf/api/qpdfselection.h b/src/pdf/api/qpdfselection.h index a5e9280dc..5a6a1cddc 100644 --- a/src/pdf/api/qpdfselection.h +++ b/src/pdf/api/qpdfselection.h @@ -56,10 +56,11 @@ class Q_PDF_EXPORT QPdfSelection Q_PROPERTY(QString text READ text) public: - QPdfSelection(const QPdfSelection &other); ~QPdfSelection(); + QPdfSelection(const QPdfSelection &other); QPdfSelection &operator=(const QPdfSelection &other); - inline QPdfSelection &operator=(QPdfSelection &&other) noexcept { swap(other); return *this; } + QPdfSelection(QPdfSelection &&other) noexcept; + QPdfSelection &operator=(QPdfSelection &&other) noexcept { swap(other); return *this; } void swap(QPdfSelection &other) noexcept { d.swap(other.d); } bool isValid() const; QVector<QPolygonF> bounds() const; |