[Bug 34796] Implement ContactInfo

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed May 11 19:41:33 CEST 2011


https://bugs.freedesktop.org/show_bug.cgi?id=34796

--- Comment #68 from Will Thompson <will.thompson at collabora.co.uk> 2011-05-11 10:41:32 PDT ---
Review of attachment 46610:
 --> (https://bugs.freedesktop.org/review?bug=34796&attachment=46610)

::: src/idle-contact-info.c
@@ +63,3 @@
+{
+    return (c == '#') || (c == '!') || (c == '&') || (c == '+');
+}

Why not turn this code into a function in muc-channel, like _is_modechar(), and
call it from the two places?

@@ +304,3 @@
     for (i = 0; channelsv[i] != NULL; i++) {
+        const gchar *channel = channelsv[i];
+        const gchar *field_params[2] = {NULL, NULL};

This shouldn't be const. You shouldn't have to cast the const away at the end
of the block when you free the string. I think you can past a char *[] to a
function expecting const char * const *?

It might be nice to avoid allocating a fresh string but I see why you have. :)

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



More information about the telepathy-bugs mailing list