[Libreoffice-commits] core.git: cui/source
Mike Kaganski (via logerrit)
logerrit at kemper.freedesktop.org
Fri Jul 19 11:51:05 UTC 2019
cui/source/factory/cuiexp.cxx | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
New commits:
commit 9987bb6ee096afada1dac848db95b3c311f723f7
Author: Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Fri Jul 19 10:10:48 2019 +0200
Commit: Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Fri Jul 19 13:50:23 2019 +0200
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 at collabora.com>
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;
}
}
More information about the Libreoffice-commits
mailing list