diff options
author | Aron Budea <baron@caesar.elte.hu> | 2016-08-28 18:42:31 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2016-09-05 16:29:56 +0000 |
commit | fdc867a4bc6ac2810732af898c620a889cde725c (patch) | |
tree | edc814a2367ffbecf31db5d0df4f42a98a3bd714 /include | |
parent | 67ef208b2b586603e205105a384231645d7f6712 (diff) |
tdf#100442 use unordered_set for GraphicManager's maObjList
Speeds up ImplCheckSizeOfSwappedInGraphics.
maObjList didn't seem to depend on it being a vector.
Change-Id: I0028186b5c4f53ae198b9b33a31c51f0b2e5eb45
Reviewed-on: https://gerrit.libreoffice.org/28439
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/svtools/grfmgr.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/svtools/grfmgr.hxx b/include/svtools/grfmgr.hxx index 80e03d06aebc..f30b0df80be5 100644 --- a/include/svtools/grfmgr.hxx +++ b/include/svtools/grfmgr.hxx @@ -24,6 +24,8 @@ #include <svtools/svtdllapi.h> #include <o3tl/typed_flags_set.hxx> +#include <unordered_set> + enum class GraphicManagerDrawFlags { CACHED = 0x01, @@ -504,8 +506,6 @@ public: sal_uLong GetDataChangeTimeStamp() const { return mnDataChangeTimeStamp; } }; -typedef ::std::vector< GraphicObject* > GraphicObjectList_impl; - class SVT_DLLPUBLIC GraphicManager { friend class GraphicObject; @@ -513,7 +513,7 @@ class SVT_DLLPUBLIC GraphicManager private: - GraphicObjectList_impl maObjList; + std::unordered_set< GraphicObject* > maObjList; sal_uLong mnUsedSize; // currently used memory footprint of all swapped in graphics GraphicCache* mpCache; |