commit bbae2c8c2af8ab40637e4f692222a706a35e14ca
Author: Jean-Marc Lasgouttes <lasgout...@lyx.org>
Date:   Fri Jan 29 18:35:38 2021 +0100

    FindAndReplaceOptions: initialize properly matchAtStart
    
    Spotted by coverity.
---
 src/lyxfind.h |   26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/src/lyxfind.h b/src/lyxfind.h
index 0f2b8ba..30c1ddd 100644
--- a/src/lyxfind.h
+++ b/src/lyxfind.h
@@ -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
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to