summaryrefslogtreecommitdiff
path: root/xmloff/source/style/impastpl.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-08-02 14:42:48 +0200
committerMichael Stahl <mstahl@redhat.com>2012-08-02 23:34:02 +0200
commitd81c7f47c98d88dc30822dd9e0550461afe77dbf (patch)
tree1d5a9eef87c72776fe99c5c993792439a2856a7b /xmloff/source/style/impastpl.hxx
parentefe1a44e473497be1be99c10dcefbc77f36041e3 (diff)
STL'ify DECLARE_CONTAINER_SORT_DEL(SvXMLAutoStylePoolParentsP_Impl)
Change-Id: I54f1595198b65058d3dd7f3304e0acb75cd55291
Diffstat (limited to 'xmloff/source/style/impastpl.hxx')
-rw-r--r--xmloff/source/style/impastpl.hxx16
1 files changed, 13 insertions, 3 deletions
diff --git a/xmloff/source/style/impastpl.hxx b/xmloff/source/style/impastpl.hxx
index 941471dde7c1..205674038860 100644
--- a/xmloff/source/style/impastpl.hxx
+++ b/xmloff/source/style/impastpl.hxx
@@ -31,13 +31,13 @@
#include <boost/ptr_container/ptr_set.hpp>
#include <sal/types.h>
-#include <svl/cntnrsrt.hxx>
#include <rtl/ustring.hxx>
#include <set>
#include <vector>
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/xml/sax/XAttributeList.hpp>
#include <com/sun/star/xml/sax/XDocumentHandler.hpp>
+#include <o3tl/sorted_vector.hxx>
#include <xmloff/maptype.hxx>
#include <xmloff/xmlexppr.hxx>
@@ -154,8 +154,18 @@ public:
}
};
-DECLARE_CONTAINER_SORT_DEL( SvXMLAutoStylePoolParentsP_Impl,
- SvXMLAutoStylePoolParentP_Impl )
+struct SvXMLAutoStylePoolParentPCmp_Impl
+{
+ bool operator()( SvXMLAutoStylePoolParentP_Impl* const& lhs, SvXMLAutoStylePoolParentP_Impl* const& rhs) const
+ {
+ return lhs->GetParent().compareTo( rhs->GetParent() ) < 0;
+ }
+};
+class SvXMLAutoStylePoolParentsP_Impl : public o3tl::sorted_vector<SvXMLAutoStylePoolParentP_Impl*, SvXMLAutoStylePoolParentPCmp_Impl>
+{
+public:
+ ~SvXMLAutoStylePoolParentsP_Impl() { DeleteAndDestroyAll(); }
+};
///////////////////////////////////////////////////////////////////////////////
//