Kaydet (Commit) 25aa1b3d authored tarafından Frank Schoenheit [fs]'s avatar Frank Schoenheit [fs]

undoapi: (I|Sfx)UndoManager now working with size_t instead of USHORT

üst f2478305
......@@ -461,7 +461,7 @@ FeatureState OReportController::GetState(sal_uInt16 _nId) const
case SID_REDO:
case SID_UNDO:
{
USHORT ( SfxUndoManager::*retrieveCount )( bool const ) const =
size_t ( SfxUndoManager::*retrieveCount )( bool const ) const =
( _nId == SID_UNDO ) ? &SfxUndoManager::GetUndoActionCount : &SfxUndoManager::GetRedoActionCount;
SfxUndoManager& rUndoManager( getUndoManager() );
......@@ -469,7 +469,7 @@ FeatureState OReportController::GetState(sal_uInt16 _nId) const
if ( aReturn.bEnabled )
{
// TODO: add "Undo/Redo: prefix"
String ( SfxUndoManager::*retrieveComment )( USHORT, bool const ) const =
String ( SfxUndoManager::*retrieveComment )( size_t, bool const ) const =
( _nId == SID_UNDO ) ? &SfxUndoManager::GetUndoActionComment : &SfxUndoManager::GetRedoActionComment;
aReturn.sTitle = (rUndoManager.*retrieveComment)( 0, ::svl::IUndoManager::TopLevel );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment