summaryrefslogtreecommitdiffstats
path: root/src/pdf/api/qpdfdestination.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-03-16 12:59:26 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-03-16 13:30:51 +0100
commit2e03a8135025e60dd6f9de5a0b4e115085a382f0 (patch)
tree73bc0392c9605d1a7f6a66736397bbdcdd5f40ea /src/pdf/api/qpdfdestination.h
parent0f9e8f15e6ed95c225fe3b6f9aaa22288987c9a2 (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/qpdfdestination.h')
-rw-r--r--src/pdf/api/qpdfdestination.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pdf/api/qpdfdestination.h b/src/pdf/api/qpdfdestination.h
index 325863226..f9c186ff6 100644
--- a/src/pdf/api/qpdfdestination.h
+++ b/src/pdf/api/qpdfdestination.h
@@ -56,10 +56,11 @@ class Q_PDF_EXPORT QPdfDestination
Q_PROPERTY(qreal zoom READ zoom)
public:
- QPdfDestination(const QPdfDestination &other);
~QPdfDestination();
+ QPdfDestination(const QPdfDestination &other);
QPdfDestination &operator=(const QPdfDestination &other);
- inline QPdfDestination &operator=(QPdfDestination &&other) noexcept { swap(other); return *this; }
+ QPdfDestination(QPdfDestination &&other) noexcept;
+ QPdfDestination &operator=(QPdfDestination &&other) noexcept { swap(other); return *this; }
void swap(QPdfDestination &other) noexcept { d.swap(other.d); }
bool isValid() const;
int page() const;