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

writerfilter: use std::unique_ptr<> in DomainMapperTableManager

Change-Id: Ib5910d3198824d625a96b53a30ad67c69c622642
üst 46e7991b
...@@ -66,8 +66,6 @@ DomainMapperTableManager::DomainMapperTableManager() : ...@@ -66,8 +66,6 @@ DomainMapperTableManager::DomainMapperTableManager() :
DomainMapperTableManager::~DomainMapperTableManager() DomainMapperTableManager::~DomainMapperTableManager()
{ {
if ( m_pTablePropsHandler )
delete m_pTablePropsHandler, m_pTablePropsHandler = nullptr;
} }
bool DomainMapperTableManager::attribute(Id nName, Value& rValue) bool DomainMapperTableManager::attribute(Id nName, Value& rValue)
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include "StyleSheetTable.hxx" #include "StyleSheetTable.hxx"
#include <com/sun/star/text/XTextRange.hpp> #include <com/sun/star/text/XTextRange.hpp>
#include <vector> #include <vector>
#include <memory>
#include <comphelper/sequenceashashmap.hxx> #include <comphelper/sequenceashashmap.hxx>
namespace writerfilter { namespace writerfilter {
...@@ -72,7 +73,7 @@ class DomainMapperTableManager : public TableManager ...@@ -72,7 +73,7 @@ class DomainMapperTableManager : public TableManager
sal_uInt32 m_nLayoutType; sal_uInt32 m_nLayoutType;
sal_Int32 m_nMaxFixedWidth; sal_Int32 m_nMaxFixedWidth;
TablePropertiesHandler *m_pTablePropsHandler; std::unique_ptr<TablePropertiesHandler> m_pTablePropsHandler;
PropertyMapPtr m_pStyleProps; PropertyMapPtr m_pStyleProps;
virtual void clearData() SAL_OVERRIDE; virtual void clearData() SAL_OVERRIDE;
......
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