summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2014-02-24 10:15:38 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2014-02-24 10:20:51 +0900
commita53577e6ff3629c4e9219616960d89eea9463593 (patch)
treed3de26160561582955335c573019f5eb6f9b3753 /scripting
parenta086a19714555ea7493e0c9ce71ee85bbc9a3664 (diff)
Replace deprecated std::auto_ptr with boost::scoped_ptr
Change-Id: I55292f5f0049e7c77d5bb0e5ef5fa187b815d159
Diffstat (limited to 'scripting')
-rw-r--r--scripting/source/protocolhandler/scripthandler.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripting/source/protocolhandler/scripthandler.cxx b/scripting/source/protocolhandler/scripthandler.cxx
index c2fd35de5093..5ff2b182037a 100644
--- a/scripting/source/protocolhandler/scripthandler.cxx
+++ b/scripting/source/protocolhandler/scripthandler.cxx
@@ -52,6 +52,8 @@
#include "com/sun/star/uri/UriReferenceFactory.hpp"
#include "com/sun/star/uri/XVndSunStarScriptUrl.hpp"
+#include <boost/scoped_ptr.hpp>
+
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::frame;
@@ -190,7 +192,7 @@ void SAL_CALL ScriptProtocolHandler::dispatchWithNotification(
}
// attempt to protect the document against the script tampering with its Undo Context
- ::std::auto_ptr< ::framework::DocumentUndoGuard > pUndoGuard;
+ boost::scoped_ptr< ::framework::DocumentUndoGuard > pUndoGuard;
if ( bIsDocumentScript )
pUndoGuard.reset( new ::framework::DocumentUndoGuard( m_xScriptInvocation ) );