Bug 79550 - Fix some clang/tartan errors
Summary: Fix some clang/tartan errors
Status: RESOLVED FIXED
Alias: None
Product: Wocky
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL: http://cgit.collabora.com/git/user/ca...
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2014-06-02 13:29 UTC by Guillaume Desmottes
Modified: 2014-06-03 14:41 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Comment 1 Simon McVittie 2014-06-03 10:58:39 UTC
+ if (e != NULL)
+ {
+ if (error != NULL)
+ *error = e;
+ else
+ g_error_free (e);
+
+ return FALSE;
+ }

should be

if (e != NULL)
  {
    g_propagate_error (error, e);
    return FALSE;
  }
Comment 2 Simon McVittie 2014-06-03 10:59:18 UTC
Also, wocky_jingle_state_machine_dance() should ideally return boolean, although I assume it isn't API anyway.
Comment 3 Guillaume Desmottes 2014-06-03 11:29:42 UTC
(In reply to comment #1)
> + if (e != NULL)
> + {
> + if (error != NULL)
> + *error = e;
> + else
> + g_error_free (e);
> +
> + return FALSE;
> + }
> 
> should be
> 
> if (e != NULL)
>   {
>     g_propagate_error (error, e);
>     return FALSE;
>   }

Oh yeah I forgot about this API; thanks.

(In reply to comment #2)
> Also, wocky_jingle_state_machine_dance() should ideally return boolean,
> although I assume it isn't API anyway.

You're right that's better; done.

Branch has been updated.
Comment 4 Simon McVittie 2014-06-03 14:39:43 UTC
Looks good
Comment 5 Guillaume Desmottes 2014-06-03 14:41:30 UTC
Merged thanks.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.