diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-01-20 01:55:56 -0500 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-01-20 01:55:56 -0500 |
commit | 68aa9373fa658ca7a3b87ebbd3de1108d4de1295 (patch) | |
tree | 53c916cddcdd1a20907a9e6022ace55e649b7ed1 /sc/inc/dptablecache.hxx | |
parent | 809392cb27b036088654c237d827930f6c459fe5 (diff) |
maLabelNames now stored in ptr_vector.
Thereby further elimination of manual deletion of stored instances.
Diffstat (limited to 'sc/inc/dptablecache.hxx')
-rw-r--r-- | sc/inc/dptablecache.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/inc/dptablecache.hxx b/sc/inc/dptablecache.hxx index 016e1ef4f59b..68ad147f2360 100644 --- a/sc/inc/dptablecache.hxx +++ b/sc/inc/dptablecache.hxx @@ -47,6 +47,7 @@ struct ScQueryParam; class SC_DLLPUBLIC ScDPTableDataCache { + typedef ::boost::ptr_vector<ScDPItemData> DataListType; typedef ::boost::ptr_vector< ::std::vector<ScDPItemData*> > DataGridType; typedef ::boost::ptr_vector< ::std::vector<SCROW> > RowGridType; @@ -59,7 +60,7 @@ class SC_DLLPUBLIC ScDPTableDataCache RowGridType maSourceData; // Data Pilot Table's source data RowGridType maGlobalOrder; // Sorted members index RowGridType maIndexOrder; // Index the sorted numbers - std::vector<ScDPItemData*> maLabelNames; //Source Label data + DataListType maLabelNames; // Source label data std::vector<bool> mbEmptyRow; //If empty row? mutable ScDPItemDataPool maAdditionalData; |