summaryrefslogtreecommitdiff
path: root/writerfilter/source/rtftok/rtfreferenceproperties.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2011-06-15 13:28:40 +0200
committerMiklos Vajna <vmiklos@frugalware.org>2011-06-15 13:49:29 +0200
commit8def2b4dad87d6da39714940d879125e8feb9e3f (patch)
treef084680eacdae7243b553f01767455b1b497c352 /writerfilter/source/rtftok/rtfreferenceproperties.cxx
parentc332db819d7ccfa4352e58b81d7e1ac5b46e0195 (diff)
Change the attribute/sprm list to a vector from a multimap
It turns out that order does matter, for example when dealing with picture size and data. (Size must arrive first.)
Diffstat (limited to 'writerfilter/source/rtftok/rtfreferenceproperties.cxx')
-rw-r--r--writerfilter/source/rtftok/rtfreferenceproperties.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/writerfilter/source/rtftok/rtfreferenceproperties.cxx b/writerfilter/source/rtftok/rtfreferenceproperties.cxx
index 2dfc364bd4fc..7d10af862259 100644
--- a/writerfilter/source/rtftok/rtfreferenceproperties.cxx
+++ b/writerfilter/source/rtftok/rtfreferenceproperties.cxx
@@ -4,7 +4,8 @@
namespace writerfilter {
namespace rtftok {
-RTFReferenceProperties::RTFReferenceProperties(std::multimap<Id, RTFValue::Pointer_t> rAttributes, std::multimap<Id, RTFValue::Pointer_t> rSprms)
+RTFReferenceProperties::RTFReferenceProperties(std::vector<std::pair<Id, RTFValue::Pointer_t>> rAttributes,
+ std::vector<std::pair<Id, RTFValue::Pointer_t>> rSprms)
: m_rAttributes(rAttributes),
m_rSprms(rSprms)
{
@@ -16,9 +17,9 @@ RTFReferenceProperties::~RTFReferenceProperties()
void RTFReferenceProperties::resolve(Properties& rHandler)
{
- for (std::multimap<Id, RTFValue::Pointer_t>::iterator i = m_rAttributes.begin(); i != m_rAttributes.end(); ++i)
+ for (std::vector<std::pair<Id, RTFValue::Pointer_t>>::iterator i = m_rAttributes.begin(); i != m_rAttributes.end(); ++i)
rHandler.attribute(i->first, *i->second.get());
- for (std::multimap<Id, RTFValue::Pointer_t>::iterator i = m_rSprms.begin(); i != m_rSprms.end(); ++i)
+ for (std::vector<std::pair<Id, RTFValue::Pointer_t>>::iterator i = m_rSprms.begin(); i != m_rSprms.end(); ++i)
{
RTFSprm aSprm(i->first, i->second);
rHandler.sprm(aSprm);