[folks/ricotz/vala] Fix a few vala semantic issues with type-argmunents




commit 70e193739c1b799e681275a24b2a36c84a1f40f8
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Aug 1 19:03:37 2022 +0200

    Fix a few vala semantic issues with type-argmunents

 backends/bluez/bluez-persona.vala  | 2 +-
 backends/eds/lib/edsf-persona.vala | 2 +-
 folks/abstract-field-details.vala  | 6 +++---
 3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/backends/bluez/bluez-persona.vala b/backends/bluez/bluez-persona.vala
index 7d0fdc4d..862596e5 100644
--- a/backends/bluez/bluez-persona.vala
+++ b/backends/bluez/bluez-persona.vala
@@ -217,7 +217,7 @@ public class Folks.Backends.BlueZ.Persona : Folks.Persona,
       this._urls_ro = this._urls.read_only_view;
     }
 
-  private void _update_params (AbstractFieldDetails details,
+  private void _update_params (AbstractFieldDetails<void*> details,
       E.VCardAttribute attr)
     {
       foreach (unowned E.VCardAttributeParam param in attr.get_params ())
diff --git a/backends/eds/lib/edsf-persona.vala b/backends/eds/lib/edsf-persona.vala
index 4369d558..3ccd7296 100644
--- a/backends/eds/lib/edsf-persona.vala
+++ b/backends/eds/lib/edsf-persona.vala
@@ -1153,7 +1153,7 @@ public class Edsf.Persona : Folks.Persona,
       this.thaw_notify ();
     }
 
-  private void _update_params (AbstractFieldDetails details,
+  private void _update_params (AbstractFieldDetails<void*> details,
       E.VCardAttribute attr)
     {
       foreach (unowned E.VCardAttributeParam param in attr.get_params ())
diff --git a/folks/abstract-field-details.vala b/folks/abstract-field-details.vala
index ed28cd22..c2c58165 100644
--- a/folks/abstract-field-details.vala
+++ b/folks/abstract-field-details.vala
@@ -286,8 +286,8 @@ public abstract class Folks.AbstractFieldDetails<T> : Object
    *
    * @since 0.9.0
    */
-  public static bool equal_static (AbstractFieldDetails left,
-                                   AbstractFieldDetails right)
+  public static bool equal_static (AbstractFieldDetails<void*> left,
+                                   AbstractFieldDetails<void*> right)
     {
       GLib.return_val_if_fail (left != null, false);
       GLib.return_val_if_fail (right != null, false);
@@ -442,7 +442,7 @@ public abstract class Folks.AbstractFieldDetails<T> : Object
    *
    * @since 0.9.0
    */
-  public static uint hash_static (AbstractFieldDetails value)
+  public static uint hash_static (AbstractFieldDetails<void*> value)
     {
       GLib.return_val_if_fail (value != null, 0);
 


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