Move static into the getter function
Change-Id: I6a4ed20cc8f208fa59f12d65d3ff8287726db594 Reviewed-on: https://gerrit.libreoffice.org/75939 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
@@ -57,11 +57,9 @@
|
||||
|
||||
namespace cui
|
||||
{
|
||||
static AbstractDialogFactory_Impl* pFactory=nullptr;
|
||||
static AbstractDialogFactory_Impl* GetFactory()
|
||||
{
|
||||
if ( !pFactory )
|
||||
pFactory = new AbstractDialogFactory_Impl;
|
||||
static AbstractDialogFactory_Impl* pFactory = new AbstractDialogFactory_Impl;
|
||||
return pFactory;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user