From 41173d067bb73a874e6da54df7b75bb9e8f3da19 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Thu, 13 Feb 2020 13:45:40 +0100 Subject: [PATCH] Switched QScopedPointer to std::unique_ptr in DockComponentsFactory --- src/DockComponentsFactory.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/DockComponentsFactory.cpp b/src/DockComponentsFactory.cpp index 28004be..85a5475 100644 --- a/src/DockComponentsFactory.cpp +++ b/src/DockComponentsFactory.cpp @@ -9,7 +9,8 @@ // INCLUDES //============================================================================ #include -#include + +#include #include "DockWidgetTab.h" #include "DockAreaTabBar.h" @@ -19,7 +20,7 @@ namespace ads { -static QScopedPointer DefaultFactory(new CDockComponentsFactory()); +static std::unique_ptr DefaultFactory(new CDockComponentsFactory()); //============================================================================ @@ -46,7 +47,7 @@ CDockAreaTitleBar* CDockComponentsFactory::createDockAreaTitleBar(CDockAreaWidge //============================================================================ const CDockComponentsFactory* CDockComponentsFactory::factory() { - return DefaultFactory.data(); + return DefaultFactory.get(); }