diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-09-20 20:55:25 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-09-20 20:55:25 +0200 |
commit | 67cde863f63725cb25d69c38d1b74a8d2bfaf9a7 (patch) | |
tree | e6d72192ca01b84e8e9dede7f9970c7b017aa56b | |
parent | 272e59094ac1390d5fde34947c724f36d2809ce4 (diff) |
Use scoped_ptr instead of deprecated auto_ptr
Change-Id: I87e5000424bed95fd25951b398bd61c3939a97ae
-rw-r--r-- | sc/source/core/tool/rangenam.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/tool/rangenam.cxx b/sc/source/core/tool/rangenam.cxx index 8a52a71cbd5a..e77ba8c3dde1 100644 --- a/sc/source/core/tool/rangenam.cxx +++ b/sc/source/core/tool/rangenam.cxx @@ -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(); } |