[Libreoffice-commits] .: sc/inc
Kohei Yoshida
kohei at kemper.freedesktop.org
Tue Sep 20 07:40:58 PDT 2011
sc/inc/dpobject.hxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit c751b73637747a37eee023ed67dee341abae38a0
Author: Kohei Yoshida <kohei.yoshida at suse.com>
Date: Tue Sep 20 10:39:56 2011 -0400
Ensure that only ScDPCollection can remove caches.
Call ScDPCollection::ClearCache() to remove cache during refreshing.
diff --git a/sc/inc/dpobject.hxx b/sc/inc/dpobject.hxx
index f34b042..bd69edb 100644
--- a/sc/inc/dpobject.hxx
+++ b/sc/inc/dpobject.hxx
@@ -255,12 +255,14 @@ public:
*/
class SheetCaches
{
+ friend class ScDPCollection;
typedef ::boost::ptr_map<ScRange, ScDPCache> CachesType;
CachesType maCaches;
ScDocument* mpDoc;
public:
SheetCaches(ScDocument* pDoc);
const ScDPCache* getCache(const ScRange& rRange);
+ private:
void removeCache(const ScRange& rRange);
};
@@ -269,12 +271,14 @@ public:
*/
class NameCaches
{
+ friend class ScDPCollection;
typedef ::boost::ptr_map<rtl::OUString, ScDPCache> CachesType;
CachesType maCaches;
ScDocument* mpDoc;
public:
NameCaches(ScDocument* pDoc);
const ScDPCache* getCache(const ::rtl::OUString& rName, const ScRange& rRange);
+ private:
void removeCache(const ::rtl::OUString& rName);
};
@@ -300,12 +304,14 @@ public:
*/
class DBCaches
{
+ friend class ScDPCollection;
typedef ::boost::ptr_map<DBType, ScDPCache, DBType::less> CachesType;
CachesType maCaches;
ScDocument* mpDoc;
public:
DBCaches(ScDocument* pDoc);
const ScDPCache* getCache(sal_Int32 nSdbType, const ::rtl::OUString& rDBName, const ::rtl::OUString& rCommand);
+ private:
void removeCache(sal_Int32 nSdbType, const ::rtl::OUString& rDBName, const ::rtl::OUString& rCommand);
};
More information about the Libreoffice-commits
mailing list