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 /src/Fl_Input_.cxx | |
| parent | 54ef53d4ae90760ecf2faf457d35b737e51eb13f (diff) | |
Add const qualifiers to can_undo and can_redo (#720)
Diffstat (limited to 'src/Fl_Input_.cxx')
| -rw-r--r-- | src/Fl_Input_.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_Input_.cxx b/src/Fl_Input_.cxx index 16b2f4aae..eb8f38bfb 100644 --- a/src/Fl_Input_.cxx +++ b/src/Fl_Input_.cxx @@ -1075,7 +1075,7 @@ int Fl_Input_::undo() { \return true if the widget can unod the last change */ -bool Fl_Input_::can_undo() { +bool Fl_Input_::can_undo() const { return (undo_->undocut || undo_->undoinsert); } @@ -1108,7 +1108,7 @@ int Fl_Input_::redo() { \return true if the widget can redo the last undo action */ -bool Fl_Input_::can_redo() { +bool Fl_Input_::can_redo() const { return (redo_list_->size() > 0); } |
