[Libreoffice-commits] .: sc/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Jan 11 10:58:04 PST 2013
sc/source/ui/docshell/dbdocfun.cxx | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit 823ab0f98c81e68847b7a0e0667329c679b37f6c
Author: Michael Stahl <mstahl at redhat.com>
Date: Fri Jan 11 19:55:45 2013 +0100
ScDBDocFunc::UpdatePivotTable: -Werror=deprecated-declarations
Change-Id: I0d1b8176c9796ae39bc692d48e4481bdedb6ff09
diff --git a/sc/source/ui/docshell/dbdocfun.cxx b/sc/source/ui/docshell/dbdocfun.cxx
index d0e3ebb..1f09610 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
More information about the Libreoffice-commits
mailing list