mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-24 23:31:32 +08:00
Switched QScopedPointer to std::unique_ptr in DockComponentsFactory
This commit is contained in:
parent
1916bd726d
commit
41173d067b
@ -9,7 +9,8 @@
|
||||
// INCLUDES
|
||||
//============================================================================
|
||||
#include <DockComponentsFactory.h>
|
||||
#include <QScopedPointer>
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "DockWidgetTab.h"
|
||||
#include "DockAreaTabBar.h"
|
||||
@ -19,7 +20,7 @@
|
||||
|
||||
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()
|
||||
{
|
||||
return DefaultFactory.data();
|
||||
return DefaultFactory.get();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user