diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-03-09 17:46:48 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-03-09 17:48:19 -0500 |
commit | 8d089c8e293a3366d9c0ac67cbfdf2a6deff5d98 (patch) | |
tree | 6449a7ac16e70196b59159cb619cce1d8d171c03 /sc/inc/dpcache.hxx | |
parent | cc32ce47cef1a72a820a9475a9a2753490a019f2 (diff) |
Use std::vector instead of boost::ptr_vector for ScDPItemData.
It's a small-size object, so using std::vector is slightly more
efficient.
Diffstat (limited to 'sc/inc/dpcache.hxx')
-rw-r--r-- | sc/inc/dpcache.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/inc/dpcache.hxx b/sc/inc/dpcache.hxx index 2880c5a72701..4c5e1bf4c0f4 100644 --- a/sc/inc/dpcache.hxx +++ b/sc/inc/dpcache.hxx @@ -57,7 +57,7 @@ struct ScDPNumGroupInfo; class SC_DLLPUBLIC ScDPCache : boost::noncopyable { public: - typedef boost::ptr_vector<ScDPItemData> DataListType; + typedef std::vector<ScDPItemData> DataListType; typedef std::set<ScDPObject*> ObjectSetType; typedef std::vector<rtl::OUString> LabelsType; typedef std::vector<SCROW> IndexArrayType; @@ -166,9 +166,10 @@ public: ~ScDPCache(); private: + void PostInit(); void Clear(); void AddLabel(const rtl::OUString& rLabel); - bool AddData(long nDim, ScDPItemData* pData, sal_uLong nNumFormat); + bool AddData(long nDim, const ScDPItemData& rData, sal_uLong nNumFormat); const GroupItems* GetGroupItems(long nDim) const; }; |