]> git.lyx.org Git - lyx.git/commitdiff
initialize boolean (reported by coverity)
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 7 Sep 2024 10:55:10 +0000 (12:55 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 7 Sep 2024 10:55:10 +0000 (12:55 +0200)
src/Statistics.cpp
src/Statistics.h

index b0e109b584548e81dc941508d27cd634ddb5fe00..a2e7023155d853549a7473b9942c81cca9fe726d 100644 (file)
@@ -33,7 +33,7 @@ void Statistics::update(CursorData const & cur, bool skip)
 {
        // early exit if the buffer has not changed since last time
        if (stats_id_ == cur.buffer()->id())
-               return;
+               return;
 
        // reset counts
        *this = Statistics();
index e91e9fc3405e4001da265b6ad92eb5ab5076b5b0..195af0382cf7a6d6e06338edcc76357cdbaa529d 100644 (file)
@@ -55,7 +55,7 @@ private:
        void update(Paragraph const & par, pos_type from = 0, pos_type to = -1);
 
        // Indicate whether parts that produce no output should be counted.
-       bool skip_no_output_;
+       bool skip_no_output_ = false;
        // Used in the code to track status
        bool inword_ = false;
        // The buffer id at last statistics computation.