summaryrefslogtreecommitdiff
path: root/cui/source/factory/cuiexp.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2019-07-19 10:10:48 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2019-07-19 13:50:23 +0200
commit9987bb6ee096afada1dac848db95b3c311f723f7 (patch)
treeac871098d925dc0e1ca32b895b54d1b8fb639dcc /cui/source/factory/cuiexp.cxx
parent242e1c42d975b2d8729cd150cf104b177033760a (diff)
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>
Diffstat (limited to 'cui/source/factory/cuiexp.cxx')
-rw-r--r--cui/source/factory/cuiexp.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/cui/source/factory/cuiexp.cxx b/cui/source/factory/cuiexp.cxx
index 3c8f89be234d..1ee11a656c75 100644
--- a/cui/source/factory/cuiexp.cxx
+++ b/cui/source/factory/cuiexp.cxx
@@ -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;
}
}