[epiphany] prefs/search-engine-row: Move a comment back to its correct location



commit 9824d0015ea713d668173ed06c9b838d34d084ef
Author: vanadiae <vanadiae35 gmail com>
Date:   Sun Dec 26 15:35:03 2021 +0100

    prefs/search-engine-row: Move a comment back to its correct location
    
    This comment was there because previously, when the search engine row
    was built in a 100s lines function directly in ephy-search-engine-list-box.c,
    it was malloc'ed at the beginning of the function and memset'ed to 0
    at the beginning of the loop. But since that didn't make sense at all
    retrospectively when moving the row to a separate widget and file,
    I just moved it to a local variable in the loop, and without malloc. It
    seems like I didn't at that time move the comment too, so this commit
    fixes it.
    
    Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1052>

 src/preferences/ephy-search-engine-row.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/preferences/ephy-search-engine-row.c b/src/preferences/ephy-search-engine-row.c
index 0c56c43bc..ac80d1950 100644
--- a/src/preferences/ephy-search-engine-row.c
+++ b/src/preferences/ephy-search-engine-row.c
@@ -367,7 +367,6 @@ update_bang_for_name (EphySearchEngineRow *row,
   g_autofree char *lowercase_acronym = NULL;
   g_autofree char *final_bang = NULL;
   int i = 0;
-  /* Fit the largest possible size for an UTF-8 character (4 bytes) and one byte for the NUL string 
terminator */
 
   /* There's nothing to do if the string is empty. */
   if (g_strcmp0 (search_engine_name, "") == 0)
@@ -381,6 +380,7 @@ update_bang_for_name (EphySearchEngineRow *row,
   for (; words[i] != NULL; ++i) {
     g_autofree char *uppercase_chars = NULL;
     char *tmp_acronym = NULL;
+    /* Fit the largest possible size for an UTF-8 character (4 bytes) and one byte for the NUL string 
terminator */
     char first_word_char[5] = {0};
     word = words[i];
 


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