FindAndReplaceOptions: initialize properly matchAtStart

Spotted by coverity.
This commit is contained in:
Jean-Marc Lasgouttes 2021-01-29 18:35:38 +01:00
parent 5145694cd0
commit bbae2c8c2a

View File

@ -97,22 +97,22 @@ public:
SearchRestriction restr = R_EVERYTHING,
bool replace_all = false
);
FindAndReplaceOptions() : casesensitive(false), matchword(false), forward(false),
expandmacros(false), ignoreformat(false),
keep_case(false), scope(S_BUFFER), restr(R_EVERYTHING), replace_all(false) {}
FindAndReplaceOptions() {}
docstring find_buf_name;
bool casesensitive;
bool matchword;
bool forward;
bool matchAtStart;
bool expandmacros;
bool ignoreformat;
bool casesensitive = false;
bool matchword = false;
bool forward = false;
bool matchAtStart = false;
bool expandmacros = false;
bool ignoreformat = false;
/// This is docstring() if no replace was requested
docstring repl_buf_name;
bool keep_case;
SearchScope scope;
SearchRestriction restr;
bool replace_all;
bool keep_case = false;
SearchScope scope = S_BUFFER;
SearchRestriction restr = R_EVERYTHING;
bool replace_all = false;
};
/// Set the formats that should be ignored