ScDBDocFunc::UpdatePivotTable: -Werror=deprecated-declarations
Change-Id: I0d1b8176c9796ae39bc692d48e4481bdedb6ff09
This commit is contained in:
@@ -1453,8 +1453,10 @@ bool ScDBDocFunc::UpdatePivotTable(ScDPObject& rDPObj, bool bRecord, bool bApi)
|
|||||||
ScDocShellModificator aModificator( rDocShell );
|
ScDocShellModificator aModificator( rDocShell );
|
||||||
WaitObject aWait( rDocShell.GetActiveDialogParent() );
|
WaitObject aWait( rDocShell.GetActiveDialogParent() );
|
||||||
|
|
||||||
|
SAL_WNODEPRECATED_DECLARATIONS_PUSH
|
||||||
std::auto_ptr<ScDocument> pOldUndoDoc;
|
std::auto_ptr<ScDocument> pOldUndoDoc;
|
||||||
std::auto_ptr<ScDocument> pNewUndoDoc;
|
std::auto_ptr<ScDocument> pNewUndoDoc;
|
||||||
|
SAL_WNODEPRECATED_DECLARATIONS_POP
|
||||||
|
|
||||||
ScDPObject aUndoDPObj(rDPObj); // For undo or revert on failure.
|
ScDPObject aUndoDPObj(rDPObj); // For undo or revert on failure.
|
||||||
|
|
||||||
@@ -1573,11 +1575,11 @@ bool ScDBDocFunc::UpdatePivotTable(ScDPObject& rDPObj, bool bRecord, bool bApi)
|
|||||||
|
|
||||||
if (bRecord)
|
if (bRecord)
|
||||||
{
|
{
|
||||||
std::auto_ptr<SfxUndoAction> pAction(
|
SfxUndoAction *const pAction(
|
||||||
new ScUndoDataPilot(
|
new ScUndoDataPilot(
|
||||||
&rDocShell, pOldUndoDoc.release(), pNewUndoDoc.release(), &aUndoDPObj, &rDPObj, false));
|
&rDocShell, pOldUndoDoc.release(), pNewUndoDoc.release(), &aUndoDPObj, &rDPObj, false));
|
||||||
|
|
||||||
rDocShell.GetUndoManager()->AddUndoAction(pAction.release());
|
rDocShell.GetUndoManager()->AddUndoAction(pAction);
|
||||||
}
|
}
|
||||||
|
|
||||||
// notify API objects
|
// notify API objects
|
||||||
|
Reference in New Issue
Block a user