diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-22 08:53:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-22 12:44:43 +0100 |
commit | a73494cf130866d4e678a1f421df56cdba7441d8 (patch) | |
tree | 7702df19639902db9fd089adf325e31c59b6ea5d /sc/source/ui/attrdlg | |
parent | 266aab73a88ae5b62fcddaf383107d8e7edc51f2 (diff) |
improve function-local statics in sc
Change-Id: Ibde8aa9393591fe405bfad8ddb23ceda77723a35
Reviewed-on: https://gerrit.libreoffice.org/63781
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/attrdlg')
-rw-r--r-- | sc/source/ui/attrdlg/scuiexp.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sc/source/ui/attrdlg/scuiexp.cxx b/sc/source/ui/attrdlg/scuiexp.cxx index d1129fa55cd8..6a04553b499b 100644 --- a/sc/source/ui/attrdlg/scuiexp.cxx +++ b/sc/source/ui/attrdlg/scuiexp.cxx @@ -55,11 +55,9 @@ namespace scui { - static ScAbstractDialogFactory_Impl* pFactory=nullptr; static ScAbstractDialogFactory_Impl* GetFactory() { - if ( !pFactory ) - pFactory = new ScAbstractDialogFactory_Impl; + static ScAbstractDialogFactory_Impl* pFactory = new ScAbstractDialogFactory_Impl; return pFactory; } } |