summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2021-12-03 11:32:31 +0100
committerMarc Mutz <marc.mutz@qt.io>2021-12-06 22:09:23 +0100
commit35e0176cfa90c38a76cba11d7dccf178344457dd (patch)
tree9af259fe416d00ded4b0916a191a7e34580d3c3d
parent65499ae20e7507fa9850ba9e057b41993ff7623f (diff)
Mark implicitly-shared classes as Q_DECLARE_SHARED
Task-number: QTBUG-98796 Change-Id: I2400ef5634ae3c263aaafe1526e843f542a73eef Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
-rw-r--r--src/pdf/qpdfdestination.h1
-rw-r--r--src/pdf/qpdfsearchresult.h1
-rw-r--r--src/pdf/qpdfselection.h1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/pdf/qpdfdestination.h b/src/pdf/qpdfdestination.h
index aa57f5c7a..f23777944 100644
--- a/src/pdf/qpdfdestination.h
+++ b/src/pdf/qpdfdestination.h
@@ -80,6 +80,7 @@ protected:
protected:
QExplicitlySharedDataPointer<QPdfDestinationPrivate> d;
};
+Q_DECLARE_SHARED(QPdfDestination)
Q_PDF_EXPORT QDebug operator<<(QDebug, const QPdfDestination &);
diff --git a/src/pdf/qpdfsearchresult.h b/src/pdf/qpdfsearchresult.h
index 7a96410a8..207c67628 100644
--- a/src/pdf/qpdfsearchresult.h
+++ b/src/pdf/qpdfsearchresult.h
@@ -71,6 +71,7 @@ private:
friend class QPdfSearchModelPrivate;
friend class QQuickPdfNavigationStack;
};
+Q_DECLARE_SHARED(QPdfSearchResult)
Q_PDF_EXPORT QDebug operator<<(QDebug, const QPdfSearchResult &);
diff --git a/src/pdf/qpdfselection.h b/src/pdf/qpdfselection.h
index 1408f44ae..7e624452b 100644
--- a/src/pdf/qpdfselection.h
+++ b/src/pdf/qpdfselection.h
@@ -88,6 +88,7 @@ private:
private:
QExplicitlySharedDataPointer<QPdfSelectionPrivate> d;
};
+Q_DECLARE_SHARED(QPdfSelection)
QT_END_NAMESPACE