mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-01-26 14:29:02 +08:00
Switched QScopedPointer to std::unique_ptr in DockComponentsFactory
This commit is contained in:
parent
1916bd726d
commit
41173d067b
@ -9,7 +9,8 @@
|
|||||||
// INCLUDES
|
// INCLUDES
|
||||||
//============================================================================
|
//============================================================================
|
||||||
#include <DockComponentsFactory.h>
|
#include <DockComponentsFactory.h>
|
||||||
#include <QScopedPointer>
|
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
#include "DockWidgetTab.h"
|
#include "DockWidgetTab.h"
|
||||||
#include "DockAreaTabBar.h"
|
#include "DockAreaTabBar.h"
|
||||||
@ -19,7 +20,7 @@
|
|||||||
|
|
||||||
namespace ads
|
namespace ads
|
||||||
{
|
{
|
||||||
static QScopedPointer<CDockComponentsFactory> DefaultFactory(new CDockComponentsFactory());
|
static std::unique_ptr<CDockComponentsFactory> DefaultFactory(new CDockComponentsFactory());
|
||||||
|
|
||||||
|
|
||||||
//============================================================================
|
//============================================================================
|
||||||
@ -46,7 +47,7 @@ CDockAreaTitleBar* CDockComponentsFactory::createDockAreaTitleBar(CDockAreaWidge
|
|||||||
//============================================================================
|
//============================================================================
|
||||||
const CDockComponentsFactory* CDockComponentsFactory::factory()
|
const CDockComponentsFactory* CDockComponentsFactory::factory()
|
||||||
{
|
{
|
||||||
return DefaultFactory.data();
|
return DefaultFactory.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user