Use scoped_ptr instead of deprecated auto_ptr
Change-Id: I87e5000424bed95fd25951b398bd61c3939a97ae
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user