Skip to content

Commit

Permalink
Undostack: Add documentation for existing methods
Browse files Browse the repository at this point in the history
Added documentation for existing methods in UndoStack class.
  • Loading branch information
tetektoza committed Nov 30, 2023
1 parent 94a7055 commit 94222bc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/undostack.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#include "undostack.h"

/**
* @brief Pushes new commands onto the commands stack (Undostack)
*
* This function pushes new commands onto the undo stack, and redos
* the command that got currently pushed, essentially triggering the command.
* It also erases any commands that had isObsolete flag set.
* Push also removes any commands that were currently undo'd on the stack.
*/
void UndoStack::push(std::unique_ptr<Command> cmd)
{
try {
Expand Down

0 comments on commit 94222bc

Please sign in to comment.