diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-24 09:58:20 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-24 11:06:21 +0200 |
commit | e3f038db8a61e6c76ff40cd4d0d01f0b16e9378b (patch) | |
tree | fc9164d5264b334cc499d5f0c33851614b9fbfa1 /filter | |
parent | 19251d0a9690a746e50b24742c5b92c150c434e6 (diff) |
ConfigFlush can be directly instantiated here
Change-Id: I97934ecf7aafbeec3db9e7149e149a468ae21374
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134854
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/config/cache/cacheupdatelistener.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/filter/source/config/cache/cacheupdatelistener.cxx b/filter/source/config/cache/cacheupdatelistener.cxx index 36e2ac160530..de9d5704e783 100644 --- a/filter/source/config/cache/cacheupdatelistener.cxx +++ b/filter/source/config/cache/cacheupdatelistener.cxx @@ -19,10 +19,10 @@ #include "cacheupdatelistener.hxx" +#include "configflush.hxx" #include <com/sun/star/util/XChangesNotifier.hpp> #include <com/sun/star/util/XRefreshable.hpp> -#include <com/sun/star/document/FilterConfigRefresh.hpp> #include <unotools/configpaths.hxx> #include <rtl/ustring.hxx> #include <comphelper/processfactory.hxx> @@ -161,9 +161,7 @@ void SAL_CALL CacheUpdateListener::changesOccurred(const css::util::ChangesEven // notify sfx cache about the changed filter cache .-) if (bNotifyRefresh) { - css::uno::Reference< css::uno::XComponentContext > xContext = comphelper::getProcessComponentContext(); - css::uno::Reference< css::util::XRefreshable > xRefreshBroadcaster = - css::document::FilterConfigRefresh::create(xContext); + rtl::Reference< ConfigFlush > xRefreshBroadcaster = new ConfigFlush(); xRefreshBroadcaster->refresh(); } } |