diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-07-09 15:27:36 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-07-09 15:32:43 -0400 |
commit | af4aaa22622e432cc0c899e019dfe819a360c567 (patch) | |
tree | 4c1b73b78c5e3ae8fd378142f2193f166ef34ae7 /include/svx/svdetc.hxx | |
parent | 9c451090df100e477272895c1c6d0ffd03a15812 (diff) |
Let's not derive from std::vector.
Change-Id: I512d97d36c344df097cc5a1ac90aa9d3d219c1e9
Diffstat (limited to 'include/svx/svdetc.hxx')
-rw-r--r-- | include/svx/svdetc.hxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/svx/svdetc.hxx b/include/svx/svdetc.hxx index 918205e36fc6..6212aabe98e0 100644 --- a/include/svx/svdetc.hxx +++ b/include/svx/svdetc.hxx @@ -195,9 +195,11 @@ SdrLinkList& ImpGetUserMakeObjUserDataHdl(); class SdrOle2Obj; class AutoTimer; -class OLEObjCache : public std::vector<SdrOle2Obj*> +class OLEObjCache { - sal_uIntPtr nSize; + std::vector<SdrOle2Obj*> maObjs; + + size_t nSize; AutoTimer* pTimer; void UnloadOnDemand(); @@ -210,6 +212,10 @@ public: void InsertObj(SdrOle2Obj* pObj); void RemoveObj(SdrOle2Obj* pObj); + + size_t size() const; + SdrOle2Obj* operator[](size_t nPos); + const SdrOle2Obj* operator[](size_t nPos) const; }; |