[Libreoffice-commits] .: sc/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Sep 20 11:55:59 PDT 2012
sc/source/core/tool/rangenam.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 67cde863f63725cb25d69c38d1b74a8d2bfaf9a7
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Thu Sep 20 20:55:25 2012 +0200
Use scoped_ptr instead of deprecated auto_ptr
Change-Id: I87e5000424bed95fd25951b398bd61c3939a97ae
diff --git a/sc/source/core/tool/rangenam.cxx b/sc/source/core/tool/rangenam.cxx
index 8a52a71..e77ba8c 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();
}
More information about the Libreoffice-commits
mailing list