From 075d472a9d120431f0b8731e4dcfe3e8b4ded521 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 2 Oct 2013 16:41:03 +0200 Subject: Use std::auto_ptr::reset where applicable (avoids warnings about std::auto_ptr ctor being deprecated) Change-Id: I39d2d155c0bc62ca77a30c02428ea39102213f42 --- sd/source/core/drawdoc.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sd') diff --git a/sd/source/core/drawdoc.cxx b/sd/source/core/drawdoc.cxx index 2d23bbda4524..e252589febad 100644 --- a/sd/source/core/drawdoc.cxx +++ b/sd/source/core/drawdoc.cxx @@ -173,10 +173,8 @@ SdDrawDocument::SdDrawDocument(DocumentType eType, SfxObjectShell* pDrDocSh) , mpMasterPageListWatcher(0) , mbUseEmbedFonts(false) { - mpDrawPageListWatcher = ::std::auto_ptr( - new ImpDrawPageListWatcher(*this)); - mpMasterPageListWatcher = ::std::auto_ptr( - new ImpMasterPageListWatcher(*this)); + mpDrawPageListWatcher.reset(new ImpDrawPageListWatcher(*this)); + mpMasterPageListWatcher.reset(new ImpMasterPageListWatcher(*this)); InitLayoutVector(); InitObjectVector(); -- cgit v1.2.3