mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-16 10:11:14 -03:00
Added const to methods which 'ought to be const' based on Const Checker
This commit is contained in:
committed by
ridiculousfish
parent
9c957eeef3
commit
c3ca108dbe
@@ -250,7 +250,7 @@ class reader_data_t {
|
||||
void pager_selection_changed();
|
||||
|
||||
/// Expand abbreviations at the current cursor position, minus backtrack_amt.
|
||||
bool expand_abbreviation_as_necessary(size_t cursor_backtrack);
|
||||
bool expand_abbreviation_as_necessary(size_t cursor_backtrack) const;
|
||||
|
||||
/// Constructor
|
||||
reader_data_t()
|
||||
@@ -622,7 +622,7 @@ bool reader_expand_abbreviation_in_command(const wcstring &cmdline, size_t curso
|
||||
/// Expand abbreviations at the current cursor position, minus the given cursor backtrack. This may
|
||||
/// change the command line but does NOT repaint it. This is to allow the caller to coalesce
|
||||
/// repaints.
|
||||
bool reader_data_t::expand_abbreviation_as_necessary(size_t cursor_backtrack) {
|
||||
bool reader_data_t::expand_abbreviation_as_necessary(size_t cursor_backtrack) const {
|
||||
bool result = false;
|
||||
editable_line_t *el = data->active_edit_line();
|
||||
if (this->expand_abbreviations && el == &data->command_line) {
|
||||
|
||||
Reference in New Issue
Block a user