summaryrefslogtreecommitdiffstats
path: root/sw/source/ui/dialog/regionsw.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-09-22 15:00:08 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-09-22 15:01:05 +0100
commit871426533f7afe31bc451fa6b407b83db8e52827 (patch)
treeed60cee61ebee91994eaffc9c9a3638836ed2ab4 /sw/source/ui/dialog/regionsw.cxx
parentshould be > 4, not > 5 (diff)
downloadcore-871426533f7afe31bc451fa6b407b83db8e52827.tar.gz
core-871426533f7afe31bc451fa6b407b83db8e52827.zip
just silence the auto_ptr deprecations in isolation
Diffstat (limited to 'sw/source/ui/dialog/regionsw.cxx')
-rw-r--r--sw/source/ui/dialog/regionsw.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/source/ui/dialog/regionsw.cxx b/sw/source/ui/dialog/regionsw.cxx
index 74f1e206c7f2..a6948c28f587 100644
--- a/sw/source/ui/dialog/regionsw.cxx
+++ b/sw/source/ui/dialog/regionsw.cxx
@@ -67,6 +67,7 @@
#include <svx/htmlmode.hxx>
#include <svx/dlgutil.hxx>
#include "swabstdlg.hxx"
+#include <boost/scoped_ptr.hpp>
void SwBaseShell::InsertRegionDialog(SfxRequest& rReq)
{
@@ -189,8 +190,8 @@ void SwBaseShell::InsertRegionDialog(SfxRequest& rReq)
IMPL_STATIC_LINK( SwWrtShell, InsertRegionDialog, SwSectionData*, pSect )
{
- ::std::auto_ptr<SwSectionData> pSectionData(pSect);
- if (pSectionData.get())
+ boost::scoped_ptr<SwSectionData> xSectionData(pSect);
+ if (xSectionData.get())
{
SfxItemSet aSet(pThis->GetView().GetPool(),
RES_COL, RES_COL,
@@ -209,7 +210,7 @@ IMPL_STATIC_LINK( SwWrtShell, InsertRegionDialog, SwSectionData*, pSect )
AbstractInsertSectionTabDialog* aTabDlg = pFact->CreateInsertSectionTabDialog( DLG_INSERT_SECTION,
&pThis->GetView().GetViewFrame()->GetWindow(),aSet , *pThis);
OSL_ENSURE(aTabDlg, "Dialogdiet fail!");
- aTabDlg->SetSectionData(*pSectionData);
+ aTabDlg->SetSectionData(*xSectionData);
aTabDlg->Execute();
delete aTabDlg;