[folks/648811-dummy-backend-rebase1] dummy: Validate the types of	personas exposed by the persona store
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [folks/648811-dummy-backend-rebase1] dummy: Validate the types of	personas exposed by the persona store
- Date: Wed,  6 Nov 2013 14:13:37 +0000 (UTC)
commit c4f194fc619224b7fca718cd3f95ed4a6d72484d
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Wed Nov 6 10:46:18 2013 +0000
    dummy: Validate the types of personas exposed by the persona store
 backends/dummy/lib/dummy-persona-store.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/backends/dummy/lib/dummy-persona-store.vala b/backends/dummy/lib/dummy-persona-store.vala
index 02c956e..6894e25 100644
--- a/backends/dummy/lib/dummy-persona-store.vala
+++ b/backends/dummy/lib/dummy-persona-store.vala
@@ -840,6 +840,8 @@ public class Dummyf.PersonaStore : Folks.PersonaStore
 
       foreach (var persona in personas)
         {
+          assert (persona is this._persona_type);
+
           if (!this._personas.has_key (persona.iid))
             {
               this._personas.set (persona.iid, persona);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]