summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2023-07-13 12:42:50 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-07-13 11:38:17 +0000
commitee69e589e233c75d3be731115d423271d89bdaa6 (patch)
tree14f3ef2e4afe8d87fd84d98016abdbcc739ad8c7
parentce4a36927e8d2de918c45c361af8f0a2281efb52 (diff)
QIOPipePrivate: fix Clang's -Wfinal-dtor-non-final-class
Says Clang 15: qiopipe.cpp:39:23: warning: class with destructor marked 'final' cannot be inherited from [-Wfinal-dtor-non-final-class] ~QIOPipePrivate() final; ^ qiopipe.cpp:34:7: note: mark 'QIOPipePrivate' as 'final' to silence this warning class QIOPipePrivate : public QObjectPrivate ^ Apply the suggested fix. Cf. also qtdeclarative/d432e5621a0a163ea5609229ef94f83235de4050. Change-Id: If083ea0c4aba57119030c1de031c825999bff923 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit b429e880e38764eaff841ff338601ac34fafaa03) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--tests/auto/qlanguageserver/qiopipe.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qlanguageserver/qiopipe.cpp b/tests/auto/qlanguageserver/qiopipe.cpp
index f2eabcc..f11f768 100644
--- a/tests/auto/qlanguageserver/qiopipe.cpp
+++ b/tests/auto/qlanguageserver/qiopipe.cpp
@@ -31,12 +31,12 @@ private:
QPointer<QPipeEndPoint> m_remoteEndPoint;
};
-class QIOPipePrivate : public QObjectPrivate
+class QIOPipePrivate final : public QObjectPrivate
{
Q_DECLARE_PUBLIC(QIOPipe)
public:
QIOPipePrivate();
- ~QIOPipePrivate() final;
+ ~QIOPipePrivate() override;
std::unique_ptr<QPipeEndPoint> end1;
std::unique_ptr<QPipeEndPoint> end2;