From ae69073fc1ffa64d003e7fa5d489d64e0e80d36c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Mu=C4=87ko?= Date: Thu, 18 Aug 2022 16:44:49 +0200 Subject: [PATCH] McuSupport: Add override keyword to McuPackage::setPath() Change-Id: Ib982d9e9da4dd6e9ae0d5f87ae29d884c556ebbb Reviewed-by: Reviewed-by: Marcus Tillmanns Reviewed-by: Alessandro Portale --- src/plugins/mcusupport/mcupackage.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/plugins/mcusupport/mcupackage.h b/src/plugins/mcusupport/mcupackage.h index 8ccf71c74bf..6500110f6fb 100644 --- a/src/plugins/mcusupport/mcupackage.h +++ b/src/plugins/mcusupport/mcupackage.h @@ -45,8 +45,7 @@ class InfoLabel; class Id; } // namespace Utils -namespace McuSupport { -namespace Internal { +namespace McuSupport::Internal { class McuPackage : public McuAbstractPackage { @@ -90,7 +89,7 @@ public: QWidget *widget() override; const McuPackageVersionDetector *getVersionDetector() const override; - void setPath(const Utils::FilePath &); + void setPath(const Utils::FilePath &) override; private: void updatePath(); @@ -149,7 +148,6 @@ private: const ToolChainType m_type; }; -} // namespace Internal -} // namespace McuSupport +} // namespace McuSupport::Internal Q_DECLARE_METATYPE(McuSupport::Internal::McuToolChainPackage::ToolChainType)