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(); }