diff options
author | David Tardon <dtardon@redhat.com> | 2016-09-09 14:13:49 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2016-09-09 16:16:45 +0200 |
commit | 8d458a24f79ed9ba321daa3db283eb22dbd7c27f (patch) | |
tree | 2383f349f332ad830b8ac5a4ce9740d9006bf14e /xmloff/inc | |
parent | 97dbbf7282b48eccedf60696ad65cf4e9987c7a9 (diff) |
use std::unique_ptr
Change-Id: I642486578190ed5e74a917c60153cac084f35fe8
Diffstat (limited to 'xmloff/inc')
-rw-r--r-- | xmloff/inc/txtlists.hxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xmloff/inc/txtlists.hxx b/xmloff/inc/txtlists.hxx index 68b9a61dade1..f4696713908e 100644 --- a/xmloff/inc/txtlists.hxx +++ b/xmloff/inc/txtlists.hxx @@ -22,6 +22,7 @@ #include <rtl/ustring.hxx> #include <map> +#include <memory> #include <stack> #include <tuple> #include <vector> @@ -37,7 +38,6 @@ class XMLTextListsHelper { public: XMLTextListsHelper(); - ~XMLTextListsHelper(); XMLTextListsHelper(const XMLTextListsHelper&) = delete; XMLTextListsHelper& operator=(const XMLTextListsHelper&) = delete; @@ -136,7 +136,7 @@ class XMLTextListsHelper // as value typedef ::std::map< OUString, ::std::pair< OUString, OUString > > tMapForLists; - tMapForLists* mpProcessedLists; + std::unique_ptr<tMapForLists> mpProcessedLists; OUString msLastProcessedListId; OUString msListStyleOfLastProcessedList; @@ -144,19 +144,19 @@ class XMLTextListsHelper map with <ListStyleName> as key and pair( <ListId, ListStyleDefaultListId> ) as value. (#i92811#) */ - tMapForLists* mpMapListIdToListStyleDefaultListId; + std::unique_ptr<tMapForLists> mpMapListIdToListStyleDefaultListId; // container type to build up continue list chain: // map with <ListId> of master list as key and <ListId> of last list // continuing the master list as value typedef ::std::map< OUString, OUString > tMapForContinuingLists; - tMapForContinuingLists* mpContinuingLists; + std::unique_ptr<tMapForContinuingLists> mpContinuingLists; // stack type for opened list elements and its list style: // vector with pair( <ListId>, <ListStyleName> ) as value typedef ::std::vector< ::std::pair< OUString, OUString > > tStackForLists; - tStackForLists* mpListStack; + std::unique_ptr<tStackForLists> mpListStack; /// to connect numbered-paragraphs that have no list-id attribute: /// vector of pair of style-name and list-id (indexed by level) |