In column sort routines, make the row pointers "const" pointers, as the
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 31 Dec 2004 00:33:54 +0000 (00:33 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 31 Dec 2004 00:33:54 +0000 (00:33 +0000)
arguments passed in corresponding to those pointers are gconstpointers.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12884 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/ansi_a_stat.c
gtk/ansi_map_stat.c
gtk/conversations_table.c
gtk/gsm_a_stat.c
gtk/mtp3_stat.c
gtk/mtp3_summary.c
gtk/rtp_analysis.c
gtk/service_response_time_table.c

index 6cc9feeef99fb257bd47afc796c0d876133a50ba..5f1d0005230d98c1a5d2af3b60dea0f53c18584c 100644 (file)
@@ -235,8 +235,8 @@ ansi_a_stat_gtk_sort_column(
     gconstpointer      ptr1,
     gconstpointer      ptr2)
 {
-    GtkCListRow                *row1 = (GtkCListRow *) ptr1;
-    GtkCListRow                *row2 = (GtkCListRow *) ptr2;
+    const GtkCListRow  *row1 = ptr1;
+    const GtkCListRow  *row2 = ptr2;
     char               *text1 = NULL;
     char               *text2 = NULL;
     int                        i1, i2;
index e8714019b27d2143757831f9678183d6b82d8b1d..a4375c398f161bf3ea182ef53c041f13b66391b2 100644 (file)
@@ -232,8 +232,8 @@ ansi_map_stat_gtk_sort_column(
     gconstpointer      ptr1,
     gconstpointer      ptr2)
 {
-    GtkCListRow                *row1 = (GtkCListRow *) ptr1;
-    GtkCListRow                *row2 = (GtkCListRow *) ptr2;
+    const GtkCListRow  *row1 = ptr1;
+    const GtkCListRow  *row2 = ptr2;
     char               *text1 = NULL;
     char               *text2 = NULL;
     int                        i1, i2;
index b0cc2697538a509de8b9ba5594f6c8d8abb56d60..b79b0869da76650ae41cc0e101f16a4774961e5e 100644 (file)
@@ -265,8 +265,8 @@ ct_sort_column(GtkCList *clist, gconstpointer ptr1, gconstpointer ptr2)
        char *text2 = NULL;
        int i1, i2;
 
-       GtkCListRow *row1 = (GtkCListRow *) ptr1;
-       GtkCListRow *row2 = (GtkCListRow *) ptr2;
+       const GtkCListRow *row1 = ptr1;
+       const GtkCListRow *row2 = ptr2;
 
        text1 = GTK_CELL_TEXT (row1->cell[clist->sort_column])->text;
        text2 = GTK_CELL_TEXT (row2->cell[clist->sort_column])->text;
index 37f90a8af50adc2222e211a1e97f6e6df60bee77..97428341d1ea82315d08feb8070603302d03a00a 100644 (file)
@@ -319,8 +319,8 @@ gsm_a_stat_gtk_sort_column(
     gconstpointer      ptr1,
     gconstpointer      ptr2)
 {
-    GtkCListRow                *row1 = (GtkCListRow *) ptr1;
-    GtkCListRow                *row2 = (GtkCListRow *) ptr2;
+    const GtkCListRow  *row1 = ptr1;
+    const GtkCListRow  *row2 = ptr2;
     char               *text1 = NULL;
     char               *text2 = NULL;
     int                        i1, i2;
index ad748016512c34ec15c2a258b82b30a37a3be111..31838193a3e41369f881460d13dc3c62b307da1e 100644 (file)
@@ -279,8 +279,8 @@ mtp3_stat_gtk_sort_column(
     gconstpointer      ptr1,
     gconstpointer      ptr2)
 {
-    GtkCListRow                *row1 = (GtkCListRow *) ptr1;
-    GtkCListRow                *row2 = (GtkCListRow *) ptr2;
+    const GtkCListRow  *row1 = ptr1;
+    const GtkCListRow  *row2 = ptr2;
     char               *text1 = NULL;
     char               *text2 = NULL;
     int                        i1, i2;
index 5bdbd73a21e4d462c2c97f27e81101ac4b673148..bb3524fae1ab69551bf9d6e6f4833b9c033d86ff 100644 (file)
@@ -149,8 +149,8 @@ mtp3_sum_gtk_sort_column(
     gconstpointer      ptr1,
     gconstpointer      ptr2)
 {
-    GtkCListRow                *row1 = (GtkCListRow *) ptr1;
-    GtkCListRow                *row2 = (GtkCListRow *) ptr2;
+    const GtkCListRow  *row1 = ptr1;
+    const GtkCListRow  *row2 = ptr2;
     char               *text1 = NULL;
     char               *text2 = NULL;
     int                        i1, i2;
index 10938f6a42feb0b572aab9992d3c64912f4e9fba..246d732bb871023768380cef4243486eb11b6d5f 100644 (file)
@@ -3065,8 +3065,8 @@ static gint rtp_sort_column(GtkCList *clist, gconstpointer ptr1, gconstpointer p
        int i1, i2;
        double f1, f2;
 
-       const GtkCListRow *row1 = (GtkCListRow *) ptr1;
-       const GtkCListRow *row2 = (GtkCListRow *) ptr2;
+       const GtkCListRow *row1 = ptr1;
+       const GtkCListRow *row2 = ptr2;
 
        text1 = GTK_CELL_TEXT (row1->cell[clist->sort_column])->text;
        text2 = GTK_CELL_TEXT (row2->cell[clist->sort_column])->text;
index db9ecc8fa600b71d2368166d1dc002aeadddc5b0..25e632c01da29df789c1419b201823c6c9737647 100644 (file)
@@ -106,8 +106,8 @@ srt_sort_column(GtkCList *clist, gconstpointer ptr1, gconstpointer ptr2)
        int i1, i2;
        float f1,f2;
 
-       GtkCListRow *row1 = (GtkCListRow *) ptr1;
-       GtkCListRow *row2 = (GtkCListRow *) ptr2;
+       const GtkCListRow *row1 = ptr1;
+       const GtkCListRow *row2 = ptr2;
 
        text1 = GTK_CELL_TEXT (row1->cell[clist->sort_column])->text;
        text2 = GTK_CELL_TEXT (row2->cell[clist->sort_column])->text;