From 76f45b351d396de41a1d6653c584c9e3d4e53417 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 9 Jun 2016 17:05:24 +0200 Subject: [PATCH] Initialize FindAndReplaceOptions in default constructor Found by coverity --- src/lyxfind.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lyxfind.h b/src/lyxfind.h index 94efba865e..781411ce96 100644 --- a/src/lyxfind.h +++ b/src/lyxfind.h @@ -101,7 +101,8 @@ public: SearchScope scope = S_BUFFER, SearchRestriction restr = R_EVERYTHING ); - FindAndReplaceOptions() {} + FindAndReplaceOptions() : casesensitive(false), matchword(false), forward(false), + expandmacros(false), ignoreformat(false) {} docstring find_buf_name; bool casesensitive; bool matchword; -- 2.39.2