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,
StyleSheetTable::~StyleSheetTable()
{
delete m_pImpl;
}
PropertyMapPtr StyleSheetTable::GetDefaultCharProps()
......
......@@ -19,6 +19,7 @@
#ifndef INCLUDED_WRITERFILTER_SOURCE_DMAPPER_STYLESHEETTABLE_HXX
#define INCLUDED_WRITERFILTER_SOURCE_DMAPPER_STYLESHEETTABLE_HXX
#include <memory>
#include "TblStylePrHandler.hxx"
#include <DomainMapper.hxx>
......@@ -77,7 +78,7 @@ public:
};
typedef std::shared_ptr<StyleSheetEntry> StyleSheetEntryPtr;
typedef ::std::deque<StyleSheetEntryPtr> StyleSheetEntryDeque;
typedef std::deque<StyleSheetEntryPtr> StyleSheetEntryDeque;
typedef std::shared_ptr<StyleSheetEntryDeque> StyleSheetEntryDequePtr;
class DomainMapper;
......@@ -85,7 +86,7 @@ class StyleSheetTable :
public LoggedProperties,
public LoggedTable
{
StyleSheetTable_Impl *m_pImpl;
std::unique_ptr<StyleSheetTable_Impl> m_pImpl;
public:
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