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:
Mike Kaganski
2019-07-19 10:10:48 +02:00
parent 242e1c42d9
commit 9987bb6ee0

View File

@@ -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;
}
}