[folks] backends: Fix libsocialweb and tracker backends with recent valac



commit c4dce06b1532f68ddc47f07eed00ec68521048f7
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Wed Nov 9 13:32:04 2016 +0000

    backends: Fix libsocialweb and tracker backends with recent valac
    
    The type checking got better in recent versions of valac, so the
    ambiguous types of the personas property in the PersonaStore
    implementations in these backends now throw an error. Fix that by making
    the type more specific.
    
    This should not be an API break; these classes are still derived from
    Folks.PersonaStore, where the types have not changed and were never
    ambiguous.

 backends/libsocialweb/lib/swf-persona-store.vala |    2 +-
 backends/tracker/lib/trf-persona-store.vala      |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/backends/libsocialweb/lib/swf-persona-store.vala 
b/backends/libsocialweb/lib/swf-persona-store.vala
index 40e8f85..f957f32 100644
--- a/backends/libsocialweb/lib/swf-persona-store.vala
+++ b/backends/libsocialweb/lib/swf-persona-store.vala
@@ -144,7 +144,7 @@ public class Swf.PersonaStore : Folks.PersonaStore
    *
    * See {@link Folks.PersonaStore.personas}.
    */
-  public override Map<string, Persona> personas
+  public override Map<string, Folks.Persona> personas
     {
       get { return this._personas_ro; }
     }
diff --git a/backends/tracker/lib/trf-persona-store.vala b/backends/tracker/lib/trf-persona-store.vala
index 3a355a7..e19d7cd 100644
--- a/backends/tracker/lib/trf-persona-store.vala
+++ b/backends/tracker/lib/trf-persona-store.vala
@@ -403,7 +403,7 @@ public class Trf.PersonaStore : Folks.PersonaStore
    *
    * See {@link Folks.PersonaStore.personas}.
    */
-  public override Map<string, Persona> personas
+  public override Map<string, Folks.Persona> personas
     {
       get { return this._personas_ro; }
     }


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