aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorTravis Reitter <treitter@gmail.com>2010-07-09 02:34:35 +0800
committerTravis Reitter <treitter@gmail.com>2010-07-21 07:12:36 +0800
commitfef2dec3ea6216921b297c7edbb3665e6c222ef5 (patch)
treeb722d3b46c7a5d4c9c06130aaafcd6910e6c01e8 /libempathy
parent571d3f81c92099c569c061f38c1ac3b923c04637 (diff)
downloadgsoc2013-empathy-fef2dec3ea6216921b297c7edbb3665e6c222ef5.tar
gsoc2013-empathy-fef2dec3ea6216921b297c7edbb3665e6c222ef5.tar.gz
gsoc2013-empathy-fef2dec3ea6216921b297c7edbb3665e6c222ef5.tar.bz2
gsoc2013-empathy-fef2dec3ea6216921b297c7edbb3665e6c222ef5.tar.lz
gsoc2013-empathy-fef2dec3ea6216921b297c7edbb3665e6c222ef5.tar.xz
gsoc2013-empathy-fef2dec3ea6216921b297c7edbb3665e6c222ef5.tar.zst
gsoc2013-empathy-fef2dec3ea6216921b297c7edbb3665e6c222ef5.zip
Add 'dup' to the names of empathy_contact_from_folks_individual() and folks_individual_from_empathy_contact() to make it clear that the return value has been referenced.
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-utils.c6
-rw-r--r--libempathy/empathy-utils.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c
index 46dcf82d6..e15dcc8c4 100644
--- a/libempathy/empathy-utils.c
+++ b/libempathy/empathy-utils.c
@@ -597,7 +597,7 @@ empathy_folks_individual_contains_contact (FolksIndividual *individual)
* within the given Individual. Note that this is a temporary convenience. See
* the TODO above. */
EmpathyContact *
-empathy_contact_from_folks_individual (FolksIndividual *individual)
+empathy_contact_dup_from_folks_individual (FolksIndividual *individual)
{
GList *personas, *l;
EmpathyContact *contact = NULL;
@@ -627,7 +627,7 @@ empathy_contact_from_folks_individual (FolksIndividual *individual)
* given EmpathyContact. Note that this is a temporary convenience. See
* the TODO above. */
FolksIndividual *
-folks_individual_from_empathy_contact (EmpathyContact *contact)
+folks_individual_dup_from_empathy_contact (EmpathyContact *contact)
{
EmpathyIndividualManager *manager;
FolksIndividual *individual = NULL;
@@ -639,7 +639,7 @@ folks_individual_from_empathy_contact (EmpathyContact *contact)
for (l = individuals; (l != NULL) && (individual == NULL); l = l->next)
{
FolksIndividual *i = FOLKS_INDIVIDUAL (l->data);
- EmpathyContact *c = empathy_contact_from_folks_individual (i);
+ EmpathyContact *c = empathy_contact_dup_from_folks_individual (i);
if (c == contact)
individual = g_object_ref (i);
diff --git a/libempathy/empathy-utils.h b/libempathy/empathy-utils.h
index a07f575d8..3168d1516 100644
--- a/libempathy/empathy-utils.h
+++ b/libempathy/empathy-utils.h
@@ -92,8 +92,8 @@ void empathy_connect_new_account (TpAccount *account,
TpConnectionPresenceType empathy_folks_presence_type_to_tp (FolksPresenceType type);
gboolean empathy_folks_individual_contains_contact (FolksIndividual *individual);
-EmpathyContact * empathy_contact_from_folks_individual (FolksIndividual *individual);
-FolksIndividual *folks_individual_from_empathy_contact (EmpathyContact *contact);
+EmpathyContact * empathy_contact_dup_from_folks_individual (FolksIndividual *individual);
+FolksIndividual *folks_individual_dup_from_empathy_contact (EmpathyContact *contact);
G_END_DECLS