Blame SOURCES/0001-tdf-99353-take-the-footgun-away-from-FilterCache.patch

f325b2
From 390ddd3bde617388e481b6747aa7bbea17d5ddf1 Mon Sep 17 00:00:00 2001
f325b2
From: David Tardon <dtardon@redhat.com>
f325b2
Date: Tue, 3 May 2016 14:49:34 +0200
f325b2
Subject: [PATCH] tdf#99353 take the footgun away from FilterCache
f325b2
f325b2
FilterCache::impl_saveItem changes the properties of a config. item
f325b2
one-by-one. But it also listens to the configuration changes and reloads
f325b2
the whole item from the configuration on change...
f325b2
f325b2
Change-Id: I9e4ed1c6b013925d07f0942717fe3421f924279d
f325b2
---
f325b2
 filter/source/config/cache/filtercache.cxx | 2 +-
f325b2
 filter/source/config/cache/filtercache.hxx | 2 +-
f325b2
 2 files changed, 2 insertions(+), 2 deletions(-)
f325b2
f325b2
diff --git a/filter/source/config/cache/filtercache.cxx b/filter/source/config/cache/filtercache.cxx
f325b2
index b9d15cf..6f5616d 100644
f325b2
--- a/filter/source/config/cache/filtercache.cxx
f325b2
+++ b/filter/source/config/cache/filtercache.cxx
f325b2
@@ -1786,7 +1786,7 @@ CacheItemList::iterator FilterCache::impl_loadItemOnDemand(      EItemType
f325b2
 
f325b2
 void FilterCache::impl_saveItem(const css::uno::Reference< css::container::XNameReplace >& xItem,
f325b2
                                       EItemType                                            eType,
f325b2
-                                const CacheItem&                                           aItem)
f325b2
+                                const CacheItem                                            aItem)
f325b2
     throw(css::uno::Exception)
f325b2
 {
f325b2
     CacheItem::const_iterator pIt;
f325b2
diff --git a/filter/source/config/cache/filtercache.hxx b/filter/source/config/cache/filtercache.hxx
f325b2
index 93c8d78..4f8b063 100644
f325b2
--- a/filter/source/config/cache/filtercache.hxx
f325b2
+++ b/filter/source/config/cache/filtercache.hxx
f325b2
@@ -809,7 +809,7 @@ class FilterCache : public BaseLock
f325b2
         /** TODO */
f325b2
         static void impl_saveItem(const css::uno::Reference< css::container::XNameReplace >& xSet  ,
f325b2
                                  EItemType                                            eType ,
f325b2
-                           const CacheItem&                                           aValue)
f325b2
+                           const CacheItem                                           aValue)
f325b2
             throw(css::uno::Exception);
f325b2
 
f325b2
 
f325b2
-- 
f325b2
2.7.4
f325b2