summaryrefslogtreecommitdiff
path: root/xmloff/source/style/impastpl.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2022-08-30 20:45:02 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-31 08:34:52 +0200
commit51103b8396c3a0c0dc34afcf3c11bd93e4342163 (patch)
treee35bbaedabe545a4782ad33637b99ccca984b85f /xmloff/source/style/impastpl.hxx
parent8cb4db941f91cc234dd18c61f8b1e51f65360d1f (diff)
flatten data structures in SvXMLAutoStylePoolP_Impl a little
set::set is already a node-based data structure, no need for more indirection Change-Id: Ib4083615696302621ce6f91059f99eee0849e4db Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139067 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/style/impastpl.hxx')
-rw-r--r--xmloff/source/style/impastpl.hxx14
1 files changed, 5 insertions, 9 deletions
diff --git a/xmloff/source/style/impastpl.hxx b/xmloff/source/style/impastpl.hxx
index 213fba13774f..b8740f137df2 100644
--- a/xmloff/source/style/impastpl.hxx
+++ b/xmloff/source/style/impastpl.hxx
@@ -63,7 +63,7 @@ public:
class XMLAutoStylePoolParent
{
public:
- typedef std::vector<std::unique_ptr<XMLAutoStylePoolProperties>> PropertiesListType;
+ typedef std::vector<XMLAutoStylePoolProperties> PropertiesListType;
private:
OUString msParent;
@@ -86,10 +86,8 @@ public:
const OUString& GetParent() const { return msParent; }
- PropertiesListType& GetPropertiesList()
- {
- return m_PropertiesList;
- }
+ PropertiesListType& GetPropertiesList() { return m_PropertiesList; }
+ const PropertiesListType& GetPropertiesList() const { return m_PropertiesList; }
bool operator< (const XMLAutoStylePoolParent& rOther) const;
};
@@ -98,8 +96,7 @@ public:
struct XMLAutoStyleFamily
{
- typedef std::set<std::unique_ptr<XMLAutoStylePoolParent>,
- comphelper::UniquePtrValueLess<XMLAutoStylePoolParent>> ParentSetType;
+ typedef std::set<XMLAutoStylePoolParent> ParentSetType;
XmlStyleFamily mnFamily;
OUString maStrFamilyName;
@@ -132,8 +129,7 @@ struct XMLAutoStyleFamily
class SvXMLAutoStylePoolP_Impl
{
// A set that finds and sorts based only on mnFamily
- typedef std::set<std::unique_ptr<XMLAutoStyleFamily>,
- comphelper::UniquePtrValueLess<XMLAutoStyleFamily>> FamilySetType;
+ typedef std::set<XMLAutoStyleFamily> FamilySetType;
SvXMLExport& rExport;
FamilySetType m_FamilySet;