summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <[email protected]>2025-01-07 10:16:58 +0100
committerGiuseppe D'Angelo <[email protected]>2025-01-08 16:29:52 +0100
commite73bb604d8c670a7e43d280af3235b1fb8008257 (patch)
treeabc0c6ec357db3175e196f960763bdbb65280f4d
parent80932ed80b5ec809b42be63c8f719290da56f288 (diff)
QPrinterInfoPrivate: code tidies
Make the constructor explicit, and remove the unncessary declaration of the destructor (turning the type into a RO0 type). Change-Id: I485d2c5f21d3a1972dbdb348ce3d7f3a15bd6275 Reviewed-by: Volker Hilsheimer <[email protected]>
-rw-r--r--src/printsupport/kernel/qprinterinfo.cpp4
-rw-r--r--src/printsupport/kernel/qprinterinfo_p.h3
2 files changed, 1 insertions, 6 deletions
diff --git a/src/printsupport/kernel/qprinterinfo.cpp b/src/printsupport/kernel/qprinterinfo.cpp
index 59078b4df48..99df3502c1f 100644
--- a/src/printsupport/kernel/qprinterinfo.cpp
+++ b/src/printsupport/kernel/qprinterinfo.cpp
@@ -35,10 +35,6 @@ QPrinterInfoPrivate::QPrinterInfoPrivate(const QString &id)
}
}
-QPrinterInfoPrivate::~QPrinterInfoPrivate()
-{
-}
-
/*!
\class QPrinterInfo
diff --git a/src/printsupport/kernel/qprinterinfo_p.h b/src/printsupport/kernel/qprinterinfo_p.h
index ef6a8144688..84579a35126 100644
--- a/src/printsupport/kernel/qprinterinfo_p.h
+++ b/src/printsupport/kernel/qprinterinfo_p.h
@@ -26,8 +26,7 @@ QT_BEGIN_NAMESPACE
class QPrinterInfoPrivate
{
public:
- QPrinterInfoPrivate(const QString& id = QString());
- ~QPrinterInfoPrivate();
+ explicit QPrinterInfoPrivate(const QString& id = QString());
QPrintDevice m_printDevice;
};