Added const to methods which 'ought to be const' based on Const Checker

This commit is contained in:
Jon Eyolfson
2018-08-09 19:46:11 -04:00
committed by ridiculousfish
parent 9c957eeef3
commit c3ca108dbe
7 changed files with 14 additions and 14 deletions

View File

@@ -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) {