diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-29 14:43:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-29 17:37:31 +0200 |
commit | 52b8697a1f6af99061984140ecbca36808ae4a55 (patch) | |
tree | 423905bd18653ec3301ffb06833caa0af40ffddd /svx/source/tbxctrls | |
parent | 962b6307da5d1248481bf9efa534a7bbd37f3a41 (diff) |
rtl::Static -> static local
Change-Id: Ib8d9a24659a37e6b94237d98f030cd2be00bcb39
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119665
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/tbxctrls')
-rw-r--r-- | svx/source/tbxctrls/tbunosearchcontrollers.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/svx/source/tbxctrls/tbunosearchcontrollers.cxx b/svx/source/tbxctrls/tbunosearchcontrollers.cxx index eebb536d6c1b..ecaaab2cd5d1 100644 --- a/svx/source/tbxctrls/tbunosearchcontrollers.cxx +++ b/svx/source/tbxctrls/tbunosearchcontrollers.cxx @@ -55,7 +55,6 @@ #include <toolkit/helper/vclunohelper.hxx> #include <vcl/toolbox.hxx> #include <vcl/svapp.hxx> -#include <rtl/instance.hxx> #include <svx/labelitemwindow.hxx> #include <svx/srchdlg.hxx> #include <vcl/event.hxx> @@ -437,15 +436,10 @@ SearchToolbarControllersManager::SearchToolbarControllersManager() { } -class theSearchToolbarControllersManager - : public rtl::Static<SearchToolbarControllersManager, - theSearchToolbarControllersManager> -{ -}; - SearchToolbarControllersManager& SearchToolbarControllersManager::createControllersManager() { - return theSearchToolbarControllersManager::get(); + static SearchToolbarControllersManager theSearchToolbarControllersManager; + return theSearchToolbarControllersManager; } void SearchToolbarControllersManager::saveSearchHistory(const FindTextFieldControl* pFindTextFieldControl) |