[Libreoffice-commits] core.git: configmgr/source
Michael Meeks
michael.meeks at collabora.com
Tue Jul 8 01:38:03 PDT 2014
configmgr/source/nodemap.hxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 58ceb16141eb003d921049cc231578ff2d685e60
Author: Michael Meeks <michael.meeks at collabora.com>
Date: Tue Jul 8 09:39:03 2014 +0100
configmgr: fix node cache clearing.
Change-Id: Idd6c227b8f50446c1d3c48385de6c843faf47466
diff --git a/configmgr/source/nodemap.hxx b/configmgr/source/nodemap.hxx
index dcfac2b..a000b30 100644
--- a/configmgr/source/nodemap.hxx
+++ b/configmgr/source/nodemap.hxx
@@ -52,8 +52,8 @@ class NodeMap
iterator end() { return maImpl.end(); }
const_iterator end() const { return maImpl.end(); }
- rtl::Reference<Node> &operator[](const OUString &aStr) { return maImpl[aStr]; /* clearCache(); */ }
- std::pair<iterator,bool> insert(const value_type &vt) { return maImpl.insert(vt); /* clearCache(); */ }
+ rtl::Reference<Node> &operator[](const OUString &aStr) { clearCache(); return maImpl[aStr]; }
+ std::pair<iterator,bool> insert(const value_type &vt) { clearCache(); return maImpl.insert(vt); }
void clear() { maImpl.clear(); clearCache(); }
void erase(const iterator &it) { maImpl.erase(it); clearCache(); }
void erase(const OUString &aStr) { maImpl.erase(aStr); clearCache(); }
More information about the Libreoffice-commits
mailing list