Kaydet (Commit) 7b1c5b29 authored tarafından Miklos Vajna's avatar Miklos Vajna

writerfilter: use std::unique_ptr<> in StyleSheetTable

Change-Id: I38eebe098c87cceb69b9ff4c48e18d3434ad1557
üst 89d61536
...@@ -390,7 +390,6 @@ StyleSheetTable::StyleSheetTable(DomainMapper& rDMapper, ...@@ -390,7 +390,6 @@ StyleSheetTable::StyleSheetTable(DomainMapper& rDMapper,
StyleSheetTable::~StyleSheetTable() StyleSheetTable::~StyleSheetTable()
{ {
delete m_pImpl;
} }
PropertyMapPtr StyleSheetTable::GetDefaultCharProps() PropertyMapPtr StyleSheetTable::GetDefaultCharProps()
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#ifndef INCLUDED_WRITERFILTER_SOURCE_DMAPPER_STYLESHEETTABLE_HXX #ifndef INCLUDED_WRITERFILTER_SOURCE_DMAPPER_STYLESHEETTABLE_HXX
#define INCLUDED_WRITERFILTER_SOURCE_DMAPPER_STYLESHEETTABLE_HXX #define INCLUDED_WRITERFILTER_SOURCE_DMAPPER_STYLESHEETTABLE_HXX
#include <memory>
#include "TblStylePrHandler.hxx" #include "TblStylePrHandler.hxx"
#include <DomainMapper.hxx> #include <DomainMapper.hxx>
...@@ -77,7 +78,7 @@ public: ...@@ -77,7 +78,7 @@ public:
}; };
typedef std::shared_ptr<StyleSheetEntry> StyleSheetEntryPtr; typedef std::shared_ptr<StyleSheetEntry> StyleSheetEntryPtr;
typedef ::std::deque<StyleSheetEntryPtr> StyleSheetEntryDeque; typedef std::deque<StyleSheetEntryPtr> StyleSheetEntryDeque;
typedef std::shared_ptr<StyleSheetEntryDeque> StyleSheetEntryDequePtr; typedef std::shared_ptr<StyleSheetEntryDeque> StyleSheetEntryDequePtr;
class DomainMapper; class DomainMapper;
...@@ -85,7 +86,7 @@ class StyleSheetTable : ...@@ -85,7 +86,7 @@ class StyleSheetTable :
public LoggedProperties, public LoggedProperties,
public LoggedTable public LoggedTable
{ {
StyleSheetTable_Impl *m_pImpl; std::unique_ptr<StyleSheetTable_Impl> m_pImpl;
public: public:
StyleSheetTable(DomainMapper& rDMapper, css::uno::Reference<css::text::XTextDocument> const& xTextDocument, bool bIsNewDoc); StyleSheetTable(DomainMapper& rDMapper, css::uno::Reference<css::text::XTextDocument> const& xTextDocument, bool bIsNewDoc);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment