Use scoped_ptr instead of deprecated auto_ptr

Change-Id: I87e5000424bed95fd25951b398bd61c3939a97ae
This commit is contained in:
Stephan Bergmann
2012-09-20 20:55:25 +02:00
parent 272e59094a
commit 67cde863f6

View File

@@ -28,6 +28,7 @@
#include <string.h>
#include <memory>
#include <boost/scoped_ptr.hpp>
#include <unotools/collatorwrapper.hxx>
#include <unotools/transliterationwrapper.hxx>
#include <com/sun/star/sheet/NamedRangeFlag.hpp>
@@ -639,7 +640,7 @@ void ScRangeData::ValidateTabRefs()
void ScRangeData::SetCode( ScTokenArray& rArr )
{
::std::auto_ptr<ScTokenArray> pOldCode( pCode); // old pCode will be deleted
boost::scoped_ptr<ScTokenArray> pOldCode( pCode); // old pCode will be deleted
pCode = new ScTokenArray( rArr );
InitCode();
}