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

sw: use std::unique_ptr in docnode

Change-Id: I7c67958c7bfea71e8b79588b85d388a8e6838775
üst 225f2ebc
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
#include <comcore.hrc> #include <comcore.hrc>
#include <viewsh.hxx> #include <viewsh.hxx>
#include <txtfrm.hxx> #include <txtfrm.hxx>
#include <boost/scoped_ptr.hpp> #include <memory>
#include <ndsect.hxx> #include <ndsect.hxx>
#include <tools/datetimeutils.hxx> #include <tools/datetimeutils.hxx>
...@@ -1229,7 +1229,7 @@ SwSectionNode* SwSectionNode::MakeCopy( SwDoc* pDoc, const SwNodeIndex& rIdx ) c ...@@ -1229,7 +1229,7 @@ SwSectionNode* SwSectionNode::MakeCopy( SwDoc* pDoc, const SwNodeIndex& rIdx ) c
SwSectionFormat* pSectFormat = pDoc->MakeSectionFormat( 0 ); SwSectionFormat* pSectFormat = pDoc->MakeSectionFormat( 0 );
pSectFormat->CopyAttrs( *GetSection().GetFormat() ); pSectFormat->CopyAttrs( *GetSection().GetFormat() );
boost::scoped_ptr<SwTOXBase> pTOXBase; std::unique_ptr<SwTOXBase> pTOXBase;
if (TOX_CONTENT_SECTION == GetSection().GetType()) if (TOX_CONTENT_SECTION == GetSection().GetType())
{ {
OSL_ENSURE( GetSection().ISA( SwTOXBaseSection ), "no TOXBaseSection!" ); OSL_ENSURE( GetSection().ISA( SwTOXBaseSection ), "no TOXBaseSection!" );
......
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