Kaydet (Commit) 963970f3 authored tarafından Caolán McNamara's avatar Caolán McNamara

std::auto_ptr->boost::scoped_ptr

Change-Id: Icb67d5a39c8ae05947be9da950a1feaaa85bc9d8
üst 44f5e76a
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
#include "retypepassdlg.hxx" #include "retypepassdlg.hxx"
#include "tabprotection.hxx" #include "tabprotection.hxx"
#include <memory> #include <boost/scoped_ptr.hpp>
using namespace com::sun::star; using namespace com::sun::star;
...@@ -261,11 +261,9 @@ sal_Bool ScTabViewShell::HasAccessibilityObjects() ...@@ -261,11 +261,9 @@ sal_Bool ScTabViewShell::HasAccessibilityObjects()
bool ScTabViewShell::ExecuteRetypePassDlg(ScPasswordHash eDesiredHash) bool ScTabViewShell::ExecuteRetypePassDlg(ScPasswordHash eDesiredHash)
{ {
using ::std::auto_ptr;
ScDocument* pDoc = GetViewData()->GetDocument(); ScDocument* pDoc = GetViewData()->GetDocument();
auto_ptr<ScRetypePassDlg> pDlg(new ScRetypePassDlg(GetDialogParent())); boost::scoped_ptr<ScRetypePassDlg> pDlg(new ScRetypePassDlg(GetDialogParent()));
pDlg->SetDataFromDocument(*pDoc); pDlg->SetDataFromDocument(*pDoc);
pDlg->SetDesiredHash(eDesiredHash); pDlg->SetDesiredHash(eDesiredHash);
if (pDlg->Execute() != RET_OK) if (pDlg->Execute() != RET_OK)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment