From a53577e6ff3629c4e9219616960d89eea9463593 Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Mon, 24 Feb 2014 10:15:38 +0900 Subject: Replace deprecated std::auto_ptr with boost::scoped_ptr Change-Id: I55292f5f0049e7c77d5bb0e5ef5fa187b815d159 --- scripting/source/protocolhandler/scripthandler.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripting') 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 + 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 ) ); -- cgit