[pan] A few more files



commit 3967a3aa6cfa869697cea7abed7b7d3f29e11769
Author: Thomas Tanner <thosrtanner googlemail com>
Date:   Wed Sep 28 21:55:24 2022 +0100

    A few more files

 pan/gui/save-attach-ui.cc | 10 +++++-----
 pan/gui/save-attach-ui.h  |  2 +-
 pan/gui/save-ui.cc        | 10 +++++-----
 pan/gui/score-add-ui.cc   |  4 ++--
 pan/gui/score-view-ui.cc  |  4 ++--
 5 files changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/pan/gui/save-attach-ui.cc b/pan/gui/save-attach-ui.cc
index 70456a6..a8085e7 100644
--- a/pan/gui/save-attach-ui.cc
+++ b/pan/gui/save-attach-ui.cc
@@ -121,7 +121,7 @@ SaveAttachmentsDialog :: response_cb (GtkDialog * dialog,
                                         self->_cache,
                                         self->_read,
                                         always ? TaskArticle::ALWAYS_MARK : TaskArticle::NEVER_MARK,
-                                        0,
+                                        nullptr,
                                         TaskArticle::DECODE,
                                         path,
                                         self->_filename,
@@ -156,7 +156,7 @@ namespace
     GtkTreeIter iter;
     gtk_combo_box_get_active_iter (combo, &iter);
     GtkTreeModel * model (gtk_combo_box_get_model (combo));
-    char * s (0);
+    char * s (nullptr);
     gtk_tree_model_get (model, &iter, 0, &s, -1);
     static_cast<Prefs*>(prefs)->set_string (key, s);
     g_free (s);
@@ -222,9 +222,9 @@ SaveAttachmentsDialog :: SaveAttachmentsDialog
   _read (read),
   _queue (queue),
   _group (group),
-  _root (0),
-  _save_custom_path_radio (0),
-  _save_group_path_radio (0),
+  _root (nullptr),
+  _save_custom_path_radio (nullptr),
+  _save_group_path_radio (nullptr),
   _articles (articles),
   _options (options),
   _filename (filename)
diff --git a/pan/gui/save-attach-ui.h b/pan/gui/save-attach-ui.h
index 7e47e7a..cb3a0d8 100644
--- a/pan/gui/save-attach-ui.h
+++ b/pan/gui/save-attach-ui.h
@@ -48,7 +48,7 @@ namespace pan
                   const Quark                 & group,
                   const std::vector<Article>  & articles,
                   const TaskArticle::SaveOptions & options,
-                  const char                  * filename=0
+                  const char                  * filename=nullptr
                   );
 
 
diff --git a/pan/gui/save-ui.cc b/pan/gui/save-ui.cc
index b303e49..2fb3f92 100644
--- a/pan/gui/save-ui.cc
+++ b/pan/gui/save-ui.cc
@@ -129,7 +129,7 @@ SaveDialog :: response_cb (GtkDialog * dialog,
                                         self->_cache,
                                         self->_read,
                                         always ? TaskArticle::ALWAYS_MARK : TaskArticle::NEVER_MARK,
-                                        0,
+                                        nullptr,
                                         TaskArticle::SaveMode(save_mode),
                                         path));
     }
@@ -162,7 +162,7 @@ namespace
     GtkTreeIter iter;
     gtk_combo_box_get_active_iter (combo, &iter);
     GtkTreeModel * model (gtk_combo_box_get_model (combo));
-    char * s (0);
+    char * s (nullptr);
     gtk_tree_model_get (model, &iter, 0, &s, -1);
     static_cast<Prefs*>(prefs)->set_string (key, s);
     g_free (s);
@@ -239,9 +239,9 @@ SaveDialog :: SaveDialog (Prefs                       & prefs,
   _read (read),
   _queue (queue),
   _group (group),
-  _root (0),
-  _save_custom_path_radio (0),
-  _save_group_path_radio (0),
+  _root (nullptr),
+  _save_custom_path_radio (nullptr),
+  _save_group_path_radio (nullptr),
   _articles (articles)
 {
   GtkWidget * dialog = gtk_dialog_new_with_buttons (_("Pan: Save Articles"),
diff --git a/pan/gui/score-add-ui.cc b/pan/gui/score-add-ui.cc
index fee0e58..ffb1bc4 100644
--- a/pan/gui/score-add-ui.cc
+++ b/pan/gui/score-add-ui.cc
@@ -40,7 +40,7 @@ namespace
 {
   enum { VALUE_STR, VALUE_TYPE, VALUE_COLS };
 
-  GtkWidget * value_combo_new (GtkTreeModel * model=0)
+  GtkWidget * value_combo_new (GtkTreeModel * model=nullptr)
   {
     GtkWidget *  w = model
       ? gtk_combo_box_new_with_model (model)
@@ -597,7 +597,7 @@ ScoreAddDialog :: ScoreAddDialog (Data           & data,
   _data (data),
   _article (article),
   _group (group),
-  _root (0)
+  _root (nullptr)
 {
   std::string s (_("Pan"));
   s += ": ";
diff --git a/pan/gui/score-view-ui.cc b/pan/gui/score-view-ui.cc
index 88d3750..5cfd388 100644
--- a/pan/gui/score-view-ui.cc
+++ b/pan/gui/score-view-ui.cc
@@ -150,7 +150,7 @@ ScoreView :: tree_view_refresh ()
     g_snprintf (value_str, sizeof(value_str), "%d", score);
 
     // build the criteria column: file & line numbers, optional name, criteria
-    GString * criteria = g_string_new (0);
+    GString * criteria = g_string_new (nullptr);
     g_string_printf (criteria, _("File %s, Lines %d - %d"), item.filename.c_str(), (int)item.begin_line, 
(int)item.end_line);
     g_string_append_c (criteria, '\n');
     if (!item.name.empty())
@@ -177,7 +177,7 @@ ScoreView :: ScoreView (Data& data, GtkWindow* parent,
   _data (data),
   _group (group),
   _article (article),
-  _root (0)
+  _root (nullptr)
 {
   GtkWidget * w = _root = gtk_dialog_new_with_buttons (_("Pan: Article's Scores"),
                                                       parent,


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