summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2014-07-08 09:39:03 +0100
committerMichael Meeks <michael.meeks@collabora.com>2014-07-08 09:39:03 +0100
commit58ceb16141eb003d921049cc231578ff2d685e60 (patch)
treea719b3304dbabcaf6f0f45c93a8495c4b1d40ce7 /configmgr
parent44fb7631cc03bbab655391593d248ba3875f308b (diff)
configmgr: fix node cache clearing.
Change-Id: Idd6c227b8f50446c1d3c48385de6c843faf47466
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/nodemap.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/configmgr/source/nodemap.hxx b/configmgr/source/nodemap.hxx
index dcfac2bc4441..a000b30aef96 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(); }