[geary: 1/2] conversation-viewer: initialize a variable to its final value



commit c68cc3d6bb6efc1ce02c3e58facb4731fb53d5ca
Author: Konstantin Kharlamov <Hi-Angel yandex ru>
Date:   Thu May 2 07:05:00 2019 +0300

    conversation-viewer: initialize a variable to its final value
    
    Signed-off-by: Konstantin Kharlamov <Hi-Angel yandex ru>

 src/client/conversation-viewer/conversation-message.vala | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/client/conversation-viewer/conversation-message.vala 
b/src/client/conversation-viewer/conversation-message.vala
index dc249191..dab4aae3 100644
--- a/src/client/conversation-viewer/conversation-message.vala
+++ b/src/client/conversation-viewer/conversation-message.vala
@@ -344,7 +344,7 @@ public class ConversationMessage : Gtk.Grid, Geary.BaseInterface {
     /** Fired when the user saves an inline displayed image. */
     public signal void save_image(string? uri, string? alt_text, Geary.Memory.Buffer buffer);
 
- 
+
     /**
      * Constructs a new view from an email's headers and body.
      *
@@ -737,7 +737,6 @@ public class ConversationMessage : Gtk.Grid, Geary.BaseInterface {
                                              GLib.Cancellable cancellable)
         throws GLib.IOError.CANCELLED {
         uint headers_found = 0;
-        uint webkit_found = 0;
         foreach(string raw_match in search_matches) {
             string match = raw_match.casefold();
 
@@ -755,7 +754,7 @@ public class ConversationMessage : Gtk.Grid, Geary.BaseInterface {
             }
         }
 
-        webkit_found += yield this.web_view.highlight_search_terms(
+        uint webkit_found = yield this.web_view.highlight_search_terms(
             search_matches, cancellable
         );
         return headers_found + webkit_found;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]