Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion TextEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ void TextEditor::AddUndo(UndoRecord& aValue)

// If a custom undo buffer is set we send the undo value on it
if ( mExternalUndoBuffer != nullptr) {
mExternalUndoBuffer->AddUndo(aValue, *this);
mExternalUndoBuffer->AddUndo(aValue);
}
}

Expand Down
6 changes: 1 addition & 5 deletions TextEditor.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,7 @@ class TextEditor
class ExternalUndoBufferInterface
{
public:
ExternalUndoBufferInterface() {};
~ExternalUndoBufferInterface() {};

virtual void AddUndo(UndoRecord&, TextEditor&)=0;

virtual void AddUndo(UndoRecord&) = 0;
};

typedef std::vector<UndoRecord> UndoBuffer;
Expand Down