cui/source/factory/cuiexp.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
New commits: commit 9987bb6ee096afada1dac848db95b3c311f723f7 Author: Mike Kaganski <[email protected]> AuthorDate: Fri Jul 19 10:10:48 2019 +0200 Commit: Mike Kaganski <[email protected]> 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 <[email protected]> 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; } } _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
