]> git.lyx.org Git - features.git/commitdiff
Initialize FindAndReplaceOptions in default constructor
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 9 Jun 2016 15:05:24 +0000 (17:05 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 9 Jun 2016 15:06:21 +0000 (17:06 +0200)
Found by coverity

src/lyxfind.h

index 94efba865e43e6575dfc5943a42e3f424afc37f6..781411ce966dccd03b44fc719b5fd1b0ab3e37b7 100644 (file)
@@ -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;