diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-08-07 15:19:39 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-08-07 16:52:08 +0200 |
commit | 18c502b0049a5330f870ad43e1c49b46cbae81fc (patch) | |
tree | 0c3490c5d1844ec7d86d50d207009358a273ebfc /xmloff/source/style/impastpl.hxx | |
parent | 1fa505d8f11ab97cd9cdcf5c6cd11ae357c29408 (diff) |
xmloff: replace boost::ptr_set with std::set<std::unqiue_ptr>
Change-Id: Iaacebe5d88ad8b124f0891f5a7763b9868a6022a
Diffstat (limited to 'xmloff/source/style/impastpl.hxx')
-rw-r--r-- | xmloff/source/style/impastpl.hxx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/xmloff/source/style/impastpl.hxx b/xmloff/source/style/impastpl.hxx index 3e5670c8ed94..50932815c374 100644 --- a/xmloff/source/style/impastpl.hxx +++ b/xmloff/source/style/impastpl.hxx @@ -24,6 +24,7 @@ #include <sal/types.h> #include <rtl/ustring.hxx> #include <set> +#include <memory> #include <vector> #include <com/sun/star/uno/Reference.h> #include <com/sun/star/xml/sax/XAttributeList.hpp> @@ -131,11 +132,19 @@ public: class SvXMLAutoStylePoolP_Impl { + struct XMLAutoStyleFamily_Less + { + bool operator()(std::unique_ptr<XMLAutoStyleFamily> const& lhs, + std::unique_ptr<XMLAutoStyleFamily> const& rhs) const + { + return (*lhs) < (*rhs); + } + }; // A set that finds and sorts based only on mnFamily - typedef boost::ptr_set<XMLAutoStyleFamily> FamilySetType; + typedef std::set<std::unique_ptr<XMLAutoStyleFamily>, XMLAutoStyleFamily_Less> FamilySetType; SvXMLExport& rExport; - FamilySetType maFamilySet; + FamilySetType m_FamilySet; public: |