summaryrefslogtreecommitdiffstats
path: root/src/pdf/qpdfdocument.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2021-12-02 17:38:41 +0100
committerMarc Mutz <marc.mutz@qt.io>2021-12-07 14:55:27 +0100
commite7bbeb6c981c7138c1195c495b4b4e8a8de5a207 (patch)
tree6953fb9576c5d78816a5634c1f111195fbf27eb7 /src/pdf/qpdfdocument.h
parentd0d091b3a887cbe621e0ccc5c83c0122f602fee1 (diff)
Make default ctors implicit
Default ctors should be implicit, because users expect '{}' to call them. If they're explicit, because they're folded into the (QObject* parent) ctors, then that no longer works. Fixes: QTBUG-98881 Change-Id: Ie52812ba76ee0b489c75ecf48b0c048025fde8c7 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/pdf/qpdfdocument.h')
-rw-r--r--src/pdf/qpdfdocument.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pdf/qpdfdocument.h b/src/pdf/qpdfdocument.h
index e20e37c77..9a81d4a8c 100644
--- a/src/pdf/qpdfdocument.h
+++ b/src/pdf/qpdfdocument.h
@@ -93,7 +93,8 @@ public:
};
Q_ENUM(MetaDataField)
- explicit QPdfDocument(QObject *parent = nullptr);
+ QPdfDocument() : QPdfDocument(nullptr) {}
+ explicit QPdfDocument(QObject *parent);
~QPdfDocument();
DocumentError load(const QString &fileName);