diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-12-30 17:14:54 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-12-30 20:23:04 +0000 |
commit | 963970f3a3fded6d152cc4c6eefb61359adad567 (patch) | |
tree | 25e39526761a4114f9766c7ff17fd5d3c46cdf73 /sc | |
parent | 44f5e76a65aa9618f9250112164308a02145f0e3 (diff) |
std::auto_ptr->boost::scoped_ptr
Change-Id: Icb67d5a39c8ae05947be9da950a1feaaa85bc9d8
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/tabvwshh.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sc/source/ui/view/tabvwshh.cxx b/sc/source/ui/view/tabvwshh.cxx index 84e805bfba9b..3dad53e34a50 100644 --- a/sc/source/ui/view/tabvwshh.cxx +++ b/sc/source/ui/view/tabvwshh.cxx @@ -36,7 +36,7 @@ #include "retypepassdlg.hxx" #include "tabprotection.hxx" -#include <memory> +#include <boost/scoped_ptr.hpp> using namespace com::sun::star; @@ -261,11 +261,9 @@ sal_Bool ScTabViewShell::HasAccessibilityObjects() bool ScTabViewShell::ExecuteRetypePassDlg(ScPasswordHash eDesiredHash) { - using ::std::auto_ptr; - ScDocument* pDoc = GetViewData()->GetDocument(); - auto_ptr<ScRetypePassDlg> pDlg(new ScRetypePassDlg(GetDialogParent())); + boost::scoped_ptr<ScRetypePassDlg> pDlg(new ScRetypePassDlg(GetDialogParent())); pDlg->SetDataFromDocument(*pDoc); pDlg->SetDesiredHash(eDesiredHash); if (pDlg->Execute() != RET_OK) |