diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-01-11 19:55:45 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-01-11 19:55:45 +0100 |
commit | 823ab0f98c81e68847b7a0e0667329c679b37f6c (patch) | |
tree | 661bbb2114349ae599431f5cbe40f13085557d55 /sc/source/ui/docshell | |
parent | 9dec0c79011a0c09068d86fba9387c67da84a39b (diff) |
ScDBDocFunc::UpdatePivotTable: -Werror=deprecated-declarations
Change-Id: I0d1b8176c9796ae39bc692d48e4481bdedb6ff09
Diffstat (limited to 'sc/source/ui/docshell')
-rw-r--r-- | sc/source/ui/docshell/dbdocfun.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sc/source/ui/docshell/dbdocfun.cxx b/sc/source/ui/docshell/dbdocfun.cxx index d0e3ebb48d03..1f096108373b 100644 --- a/sc/source/ui/docshell/dbdocfun.cxx +++ b/sc/source/ui/docshell/dbdocfun.cxx @@ -1453,8 +1453,10 @@ bool ScDBDocFunc::UpdatePivotTable(ScDPObject& rDPObj, bool bRecord, bool bApi) ScDocShellModificator aModificator( rDocShell ); WaitObject aWait( rDocShell.GetActiveDialogParent() ); + SAL_WNODEPRECATED_DECLARATIONS_PUSH std::auto_ptr<ScDocument> pOldUndoDoc; std::auto_ptr<ScDocument> pNewUndoDoc; + SAL_WNODEPRECATED_DECLARATIONS_POP ScDPObject aUndoDPObj(rDPObj); // For undo or revert on failure. @@ -1573,11 +1575,11 @@ bool ScDBDocFunc::UpdatePivotTable(ScDPObject& rDPObj, bool bRecord, bool bApi) if (bRecord) { - std::auto_ptr<SfxUndoAction> pAction( + SfxUndoAction *const pAction( new ScUndoDataPilot( &rDocShell, pOldUndoDoc.release(), pNewUndoDoc.release(), &aUndoDPObj, &rDPObj, false)); - rDocShell.GetUndoManager()->AddUndoAction(pAction.release()); + rDocShell.GetUndoManager()->AddUndoAction(pAction); } // notify API objects |