summaryrefslogtreecommitdiff
path: root/sw/source/core/edit/edws.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mst@openoffice.org>2010-12-15 09:14:08 +0100
committerMichael Stahl <mst@openoffice.org>2010-12-15 09:14:08 +0100
commit8e7d7f0e1418945ccc41ea65de273cfd7e2bf652 (patch)
tree5616c2220911317c90a113ec0cb8ffea02084ec4 /sw/source/core/edit/edws.cxx
parent58a64dfc06da10c1f0ce97cb8a68817941d7a36e (diff)
undoapi: #i115383#: change return type of GetLastUndoInfo() to bool:
unfortunately several places need the ID, so add the ID as an out parameter. a bool return is necessary in case the Undo action is not a writer action, but created via the undo API.
Diffstat (limited to 'sw/source/core/edit/edws.cxx')
-rw-r--r--sw/source/core/edit/edws.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/edit/edws.cxx b/sw/source/core/edit/edws.cxx
index 8b2d35a25e35..1a681ad2cf29 100644
--- a/sw/source/core/edit/edws.cxx
+++ b/sw/source/core/edit/edws.cxx
@@ -298,8 +298,9 @@ SwUndoId SwEditShell::EndUndo(SwUndoId eUndoId,
{ return GetDoc()->GetIDocumentUndoRedo().EndUndo(eUndoId, pRewriter); }
-SwUndoId SwEditShell::GetLastUndoInfo(::rtl::OUString *const o_pStr) const
-{ return GetDoc()->GetIDocumentUndoRedo().GetLastUndoInfo(o_pStr); }
+bool SwEditShell::GetLastUndoInfo(::rtl::OUString *const o_pStr,
+ SwUndoId *const o_pId) const
+{ return GetDoc()->GetIDocumentUndoRedo().GetLastUndoInfo(o_pStr, o_pId); }
bool SwEditShell::GetFirstRedoInfo(::rtl::OUString *const o_pStr) const
{ return GetDoc()->GetIDocumentUndoRedo().GetFirstRedoInfo(o_pStr); }