Skip to content

Commit 41173d0

Browse files
Switched QScopedPointer to std::unique_ptr in DockComponentsFactory
1 parent 1916bd7 commit 41173d0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/DockComponentsFactory.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
// INCLUDES
1010
//============================================================================
1111
#include <DockComponentsFactory.h>
12-
#include <QScopedPointer>
12+
13+
#include <memory>
1314

1415
#include "DockWidgetTab.h"
1516
#include "DockAreaTabBar.h"
@@ -19,7 +20,7 @@
1920

2021
namespace ads
2122
{
22-
static QScopedPointer<CDockComponentsFactory> DefaultFactory(new CDockComponentsFactory());
23+
static std::unique_ptr<CDockComponentsFactory> DefaultFactory(new CDockComponentsFactory());
2324

2425

2526
//============================================================================
@@ -46,7 +47,7 @@ CDockAreaTitleBar* CDockComponentsFactory::createDockAreaTitleBar(CDockAreaWidge
4647
//============================================================================
4748
const CDockComponentsFactory* CDockComponentsFactory::factory()
4849
{
49-
return DefaultFactory.data();
50+
return DefaultFactory.get();
5051
}
5152

5253

0 commit comments

Comments
 (0)