Fix some miscellaneous warnings

This commit is contained in:
ridiculousfish
2018-08-26 00:43:40 -07:00
parent 67c4da9dbf
commit 2a680ebd12
3 changed files with 13 additions and 15 deletions

View File

@@ -278,8 +278,7 @@ class reader_history_search_t {
bool add_skip(const wcstring &str) { return skips_.insert(str).second; }
/// Reset, beginning a new line or token mode search.
void reset_to_mode(const wcstring &text, history_t *hist, mode_t mode,
wcstring_list_t skip_list = {}) {
void reset_to_mode(const wcstring &text, history_t *hist, mode_t mode) {
assert(mode != inactive && "mode cannot be inactive in this setter");
skips_ = {text};
matches_ = {text};