diff options
author | David Tardon <dtardon@redhat.com> | 2016-05-03 14:49:34 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-05-03 15:58:03 +0000 |
commit | 9b5fa0a53f5b23b3c6d53b110b8c68a2ddfdbd62 (patch) | |
tree | e9654d6b8df5ae12bb80ada97c7b67a73e64c32a /filter | |
parent | 7e9b5d9ba6bccdc75bfee4ddfd2f1582ea10746f (diff) |
tdf#99353 take the footgun away from FilterCache
FilterCache::impl_saveItem changes the properties of a config. item
one-by-one. But it also listens to the configuration changes and reloads
the whole item from the configuration on change...
Change-Id: I9e4ed1c6b013925d07f0942717fe3421f924279d
(cherry picked from commit 390ddd3bde617388e481b6747aa7bbea17d5ddf1)
Reviewed-on: https://gerrit.libreoffice.org/24610
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/config/cache/filtercache.cxx | 2 | ||||
-rw-r--r-- | filter/source/config/cache/filtercache.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/filter/source/config/cache/filtercache.cxx b/filter/source/config/cache/filtercache.cxx index dacad0981133..f39b67ff5bc6 100644 --- a/filter/source/config/cache/filtercache.cxx +++ b/filter/source/config/cache/filtercache.cxx @@ -1809,7 +1809,7 @@ CacheItemList::iterator FilterCache::impl_loadItemOnDemand( EItemType void FilterCache::impl_saveItem(const css::uno::Reference< css::container::XNameReplace >& xItem, EItemType eType, - const CacheItem& aItem) + const CacheItem aItem) throw(css::uno::Exception) { CacheItem::const_iterator pIt; diff --git a/filter/source/config/cache/filtercache.hxx b/filter/source/config/cache/filtercache.hxx index a98684957065..c3db85aff2f4 100644 --- a/filter/source/config/cache/filtercache.hxx +++ b/filter/source/config/cache/filtercache.hxx @@ -839,7 +839,7 @@ class FilterCache : public BaseLock /** TODO */ static void impl_saveItem(const css::uno::Reference< css::container::XNameReplace >& xSet , EItemType eType , - const CacheItem& aValue) + const CacheItem aValue) throw(css::uno::Exception); |