From 92a8c7e3954e29099a61167d5f5ed258387f04b5 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Thu, 6 Feb 2025 10:25:21 +0100 Subject: [PATCH] compiler warnings fixed --- playground/parrots/Overlay.cpp | 10 +++++----- playground/parrots/main.cpp | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/playground/parrots/Overlay.cpp b/playground/parrots/Overlay.cpp index 63a98178..f17827f5 100644 --- a/playground/parrots/Overlay.cpp +++ b/playground/parrots/Overlay.cpp @@ -19,7 +19,7 @@ namespace { - class Material : public TextureFilterMaterial + class Material final : public TextureFilterMaterial { public: using TextureFilterMaterial::TextureFilterMaterial; @@ -31,7 +31,7 @@ namespace } }; - class FilterNode : public TextureFilterNode + class FilterNode final : public TextureFilterNode { public: FilterNode( bool useRhi, QSGTexture* texture ) @@ -52,7 +52,7 @@ namespace } }; - class Skinlet : public QskSkinlet + class Skinlet final : public QskSkinlet { using Inherited = QskSkinlet; @@ -70,8 +70,8 @@ namespace return contentsRect; } - QSGNode* updateSubNode( - const QskSkinnable* skinnable, quint8 nodeRole, QSGNode* node ) const + QSGNode* updateSubNode( const QskSkinnable* skinnable, + quint8 nodeRole, QSGNode* node ) const override { const auto overlay = static_cast< const Overlay* >( skinnable ); diff --git a/playground/parrots/main.cpp b/playground/parrots/main.cpp index 00130446..7d61af84 100644 --- a/playground/parrots/main.cpp +++ b/playground/parrots/main.cpp @@ -146,7 +146,7 @@ class MainView : public QskControl } protected: - void updateLayout() + void updateLayout() override { if ( m_background ) m_background->setGeometry( rect() );