QPageLayoutPrivate: remove declaration of the destructor

It's unnecessary (defaulted). The class is meant to be copiable and it
can be such as a RO0 class.

Change-Id: I179bf33f1b50e0c474c9b7938440e720f558b8fe
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Giuseppe D'Angelo 2025-01-07 13:08:04 +01:00
parent e73bb604d8
commit 9f03c64af7

View File

@ -72,7 +72,6 @@ public:
QPageLayoutPrivate(const QPageSize &pageSize, QPageLayout::Orientation orientation,
const QMarginsF &margins, QPageLayout::Unit units,
const QMarginsF &minMargins);
~QPageLayoutPrivate();
bool operator==(const QPageLayoutPrivate &other) const;
bool isEquivalentTo(const QPageLayoutPrivate &other) const;
@ -124,10 +123,6 @@ QPageLayoutPrivate::QPageLayoutPrivate(const QPageSize &pageSize, QPageLayout::O
setDefaultMargins(minMargins);
}
QPageLayoutPrivate::~QPageLayoutPrivate()
{
}
bool QPageLayoutPrivate::operator==(const QPageLayoutPrivate &other) const
{
return m_pageSize == other.m_pageSize