diff options
| author | ZJUGKC <yxxinyuan@zju.edu.cn> | 2023-04-17 22:12:03 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-17 16:12:03 +0200 |
| commit | 385cabf3aac721d6a4c1f499f9fc4955c4c805f9 (patch) | |
| tree | f3a2fd8affc9887ef2d6549eb9add7e8bab4f687 /FL | |
| parent | 54ef53d4ae90760ecf2faf457d35b737e51eb13f (diff) | |
Add const qualifiers to can_undo and can_redo (#720)
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Input_.H | 4 | ||||
| -rw-r--r-- | FL/Fl_Text_Buffer.H | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/FL/Fl_Input_.H b/FL/Fl_Input_.H index 6eacc27ae..8c7a887f2 100644 --- a/FL/Fl_Input_.H +++ b/FL/Fl_Input_.H @@ -385,13 +385,13 @@ public: int undo(); /* Return true if the last operation can be undone. */ - bool can_undo(); + bool can_undo() const; /* Redo previous undo operations. */ int redo(); /* Return true if there is a redo action in the list. */ - bool can_redo(); + bool can_redo() const; /* Copy the yank buffer to the clipboard. */ int copy_cuts(); diff --git a/FL/Fl_Text_Buffer.H b/FL/Fl_Text_Buffer.H index 4a0d0034b..28ac349ed 100644 --- a/FL/Fl_Text_Buffer.H +++ b/FL/Fl_Text_Buffer.H @@ -331,7 +331,7 @@ public: Check if undo is anabled and if the last action can be undone. \see canUndo() */ - bool can_undo(); + bool can_undo() const; /** Redo previous undo action. @@ -342,7 +342,7 @@ public: Check if undo is anabled and if the last undo action can be redone. \see canUndo() */ - bool can_redo(); + bool can_redo() const; /** Enable or disable undo actions for this text buffer. |
