From 37b00a9fd5306bcdae5fa9cd3c62415f29009762 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sat, 15 Jul 2023 15:12:17 +0300 Subject: [PATCH] Fix build. --- src/libs/vobj/vobjengine.cpp | 12 +++--------- src/libs/vobj/vobjengine.h | 2 +- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/libs/vobj/vobjengine.cpp b/src/libs/vobj/vobjengine.cpp index ccd65c8cc..a5ecdb724 100644 --- a/src/libs/vobj/vobjengine.cpp +++ b/src/libs/vobj/vobjengine.cpp @@ -40,8 +40,8 @@ #include #include #include -#include #include +#include #if QT_VERSION < QT_VERSION_CHECK(5, 5, 0) #include "../vmisc/diagnostic.h" @@ -71,9 +71,8 @@ static inline auto svgEngineFeatures() -> QPaintEngine::PaintEngineFeatures QT_WARNING_DISABLE_INTEL(68) QT_WARNING_DISABLE_INTEL(2022) - return QPaintEngine::PaintEngineFeatures(QPaintEngine::AllFeatures & ~QPaintEngine::PatternBrush & - ~QPaintEngine::PerspectiveTransform & ~QPaintEngine::ConicalGradientFill & - ~QPaintEngine::PorterDuff); + return {QPaintEngine::AllFeatures & ~QPaintEngine::PatternBrush & ~QPaintEngine::PerspectiveTransform & + ~QPaintEngine::ConicalGradientFill & ~QPaintEngine::PorterDuff}; QT_WARNING_POP } @@ -100,11 +99,6 @@ VObjEngine::VObjEngine() #pragma warning(pop) #endif -//--------------------------------------------------------------------------------------------------------------------- -VObjEngine::~VObjEngine() -{ -} - //--------------------------------------------------------------------------------------------------------------------- auto VObjEngine::begin(QPaintDevice *pdev) -> bool { diff --git a/src/libs/vobj/vobjengine.h b/src/libs/vobj/vobjengine.h index ba27fd1b7..b469fa377 100644 --- a/src/libs/vobj/vobjengine.h +++ b/src/libs/vobj/vobjengine.h @@ -49,7 +49,7 @@ class VObjEngine final : public QPaintEngine { public: VObjEngine(); - virtual ~VObjEngine() override; + ~VObjEngine() override = default; virtual auto begin(QPaintDevice *pdev) -> bool override; virtual auto end() -> bool override;