Mir

Code review comment for lp:~mir-team/mir/unify-keyboard-actions

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

> >. The name doesn't make it obvious that we have a return value and an out
> parameter - which, BTW >> is in the wrong location:
>
> Fixed parameter location.
>
> I don't see how I could make it more obvious that there is an out parameter
> without repeating myself 3 times in the same line (non const reference, _out
> postfix...) I've added a comment explaining why MirKeyboardAction needs to be
> converted to 2 android values though.

Well you could return a struct { action, repeat_count }; or a tuple<>

« Back to merge proposal