diff options
author | Noel <noelgrandin@gmail.com> | 2020-11-05 12:43:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-11-05 14:28:02 +0100 |
commit | a129f3b20bd8e28c931e5318d981daa51af067d3 (patch) | |
tree | 78c3df447a04bba7b90eb6c5fdd89f29325a063a /sc/inc/dpobject.hxx | |
parent | c44fa10aa2a04945196622c73272c775374be486 (diff) |
std::set->o3tl::sorted_set in ScDPCache
Change-Id: I8d647149545d0b5ff7bb82a8db171b9410ea79b1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105337
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc/dpobject.hxx')
-rw-r--r-- | sc/inc/dpobject.hxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sc/inc/dpobject.hxx b/sc/inc/dpobject.hxx index 81b87eead430..7a2279ee16e0 100644 --- a/sc/inc/dpobject.hxx +++ b/sc/inc/dpobject.hxx @@ -29,9 +29,9 @@ #include "calcmacros.hxx" #include <com/sun/star/sheet/DataPilotFieldOrientation.hpp> +#include <o3tl/sorted_vector.hxx> #include <memory> -#include <set> #include <vector> #include <map> @@ -305,7 +305,7 @@ public: SC_DLLPUBLIC ScDPCache* getExistingCache(const ScRange& rRange); SC_DLLPUBLIC const ScDPCache* getExistingCache(const ScRange& rRange) const; - void updateCache(const ScRange& rRange, std::set<ScDPObject*>& rRefs); + void updateCache(const ScRange& rRange, o3tl::sorted_vector<ScDPObject*>& rRefs); bool remove(const ScDPCache* p); SC_DLLPUBLIC const std::vector<ScRange>& getAllRanges() const; @@ -330,7 +330,7 @@ public: ScDPCache* getExistingCache(const OUString& rName); void updateCache( - const OUString& rName, const ScRange& rRange, std::set<ScDPObject*>& rRefs); + const OUString& rName, const ScRange& rRange, o3tl::sorted_vector<ScDPObject*>& rRefs); bool remove(const ScDPCache* p); }; @@ -376,7 +376,7 @@ public: void updateCache( sal_Int32 nSdbType, const OUString& rDBName, const OUString& rCommand, - std::set<ScDPObject*>& rRefs); + o3tl::sorted_vector<ScDPObject*>& rRefs); bool remove(const ScDPCache* p); }; @@ -384,8 +384,8 @@ public: ScDPCollection(const ScDPCollection& r); ~ScDPCollection(); - const char* ReloadCache(const ScDPObject* pDPObj, std::set<ScDPObject*>& rRefs); - bool ReloadGroupsInCache(const ScDPObject* pDPObj, std::set<ScDPObject*>& rRefs); + const char* ReloadCache(const ScDPObject* pDPObj, o3tl::sorted_vector<ScDPObject*>& rRefs); + bool ReloadGroupsInCache(const ScDPObject* pDPObj, o3tl::sorted_vector<ScDPObject*>& rRefs); SC_DLLPUBLIC bool GetReferenceGroups(const ScDPObject& rDPObj, const ScDPDimensionSaveData** pGroups) const; SC_DLLPUBLIC size_t GetCount() const; @@ -433,11 +433,11 @@ private: /** Only to be called from ScDPCache::RemoveReference(). */ void RemoveCache(const ScDPCache* pCache); - void GetAllTables(const ScRange& rSrcRange, std::set<ScDPObject*>& rRefs) const; - void GetAllTables(const OUString& rSrcName, std::set<ScDPObject*>& rRefs) const; + void GetAllTables(const ScRange& rSrcRange, o3tl::sorted_vector<ScDPObject*>& rRefs) const; + void GetAllTables(const OUString& rSrcName, o3tl::sorted_vector<ScDPObject*>& rRefs) const; void GetAllTables( sal_Int32 nSdbType, const OUString& rDBName, const OUString& rCommand, - std::set<ScDPObject*>& rRefs) const; + o3tl::sorted_vector<ScDPObject*>& rRefs) const; private: typedef std::vector< std::unique_ptr<ScDPObject> > TablesType; |