summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml/XMLStylesExportHelper.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2010-11-30 16:01:55 -0500
committerKohei Yoshida <kyoshida@novell.com>2010-12-02 16:06:51 -0500
commit09174637e0cc51142f909420531ee5d161ee0885 (patch)
tree35b96982b60c16bb8c64377c4fca278f415152ad /sc/source/filter/xml/XMLStylesExportHelper.hxx
parente844bfda27e890de84c88a02753193698e9736d5 (diff)
Replaced std::vector with boost::ptr_vector.
Nested std::vector does excessive copying of inner vector instances behind the scene. Using ptr_vector to store the pointers to the inner vector instances avoids that. Doing this alone cuts memory footprint per sheet when exporting document to .ods file.
Diffstat (limited to 'sc/source/filter/xml/XMLStylesExportHelper.hxx')
-rw-r--r--sc/source/filter/xml/XMLStylesExportHelper.hxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/sc/source/filter/xml/XMLStylesExportHelper.hxx b/sc/source/filter/xml/XMLStylesExportHelper.hxx
index c5d17f007b3f..4597ae91f459 100644
--- a/sc/source/filter/xml/XMLStylesExportHelper.hxx
+++ b/sc/source/filter/xml/XMLStylesExportHelper.hxx
@@ -38,6 +38,9 @@
#include <com/sun/star/sheet/ValidationAlertStyle.hpp>
#include <com/sun/star/sheet/ValidationType.hpp>
+#include <boost/ptr_container/ptr_vector.hpp>
+#include <mdds/flat_segment_tree.hpp>
+
class ScDocument;
class ScXMLExport;
@@ -272,9 +275,8 @@ public:
class ScRowStyles : public ScColumnRowStylesBase
{
- typedef std::vector<sal_Int32> ScMysalInt32Vec;
- typedef std::vector<ScMysalInt32Vec> ScMyRowVectorVec;
- ScMyRowVectorVec aTables;
+ typedef std::vector<sal_Int32> ScMysalInt32Vec;
+ ::boost::ptr_vector<ScMysalInt32Vec> aTables;
public:
ScRowStyles();