[epiphany] uri-tester: Replace char** with GStrv where it is worth



commit 16e06ffc96e86f535b38a7de5dca7c9e10fdd6d5
Author: Yi-Soo An <yisooan gmail com>
Date:   Thu Feb 21 11:31:50 2019 +0900

    uri-tester: Replace char** with GStrv where it is worth
    
    To use g_auto on char** types which are used to hold NULL terminated
    string arrays, replace it with GStrv which is the typedef of gchar**.

 embed/web-extension/ephy-uri-tester.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/embed/web-extension/ephy-uri-tester.c b/embed/web-extension/ephy-uri-tester.c
index 76ea56f60..63fdcd29a 100644
--- a/embed/web-extension/ephy-uri-tester.c
+++ b/embed/web-extension/ephy-uri-tester.c
@@ -359,7 +359,7 @@ ephy_uri_tester_add_url_pattern (EphyUriTester *tester,
                                  char          *line,
                                  gboolean       whitelist)
 {
-  char **data;
+  GStrv data;
   char *patt;
   GString *format_patt;
   const char *opts;
@@ -429,7 +429,7 @@ ephy_uri_tester_frame_add_private (EphyUriTester *tester,
                                    const char    *line,
                                    const char    *sep)
 {
-  char **data;
+  GStrv data;
   data = g_strsplit (line, sep, 2);
 
   if (!(data[1] && *data[1])
@@ -441,7 +441,7 @@ ephy_uri_tester_frame_add_private (EphyUriTester *tester,
   }
 
   if (strchr (data[0], ',')) {
-    char **domains;
+    GStrv domains;
     int i;
 
     domains = g_strsplit (data[0], ",", -1);
@@ -632,7 +632,7 @@ static void
 ephy_uri_tester_begin_loading_adblock_filters (EphyUriTester  *tester,
                                                GList         **monitors)
 {
-  char **filters;
+  GStrv filters;
 
   filters = g_settings_get_strv (EPHY_SETTINGS_WEB_EXTENSION_MAIN, EPHY_PREFS_ADBLOCK_FILTERS);
   tester->adblock_filters_to_load = g_strv_length (filters);


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