[folks/648811-dummy-backend-rebase1: 17/41] 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: 17/41] dummy: Validate the types of personas exposed by the persona store
- Date: Thu, 7 Nov 2013 08:53:11 +0000 (UTC)
commit be1980e1dc08c514f9c894b63f769f7f2624ef2a
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..903f306 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.get_type ().is_a (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]