From: Daniel W. <d.w...@sa...> - 2013-06-27 08:30:04
|
On 27/06/13 04:58, David Seikel wrote: > On Thu, 27 Jun 2013 09:12:14 +0900 Carsten Haitzler (The Rasterman) > <ra...@ra...> wrote: > >> On Wed, 26 Jun 2013 08:56:43 -0700 Daniel Willmann - Enlightenment Git >> <no-...@en...> said: >> >> the ? operator is evil. pure evil. > > I have no idea why it's being used here to choose between two boolean > values. Seems like overkill. Heh, I didn't actually think of that. I guess !prev_it should be enough. There's one other occurrence in the file, I'll fix them both. Daniel >>> asdfuser pushed a commit to branch master. >>> >>> commit b088400a2bfa8422a83eeb4e08b1113e0a0b7fa2 >>> Author: Daniel Willmann <d.w...@sa...> >>> Date: Wed Jun 26 16:45:54 2013 +0100 >>> >>> elc_naviframe.c: Correctly call _resize_object_reset() >>> >>> Incorrect use of the ?-operator... >>> >>> Signed-off-by: Daniel Willmann <d.w...@sa...> >>> --- >>> src/lib/elc_naviframe.c | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/src/lib/elc_naviframe.c b/src/lib/elc_naviframe.c >>> index 328afc5..b3b8b5f 100644 >>> --- a/src/lib/elc_naviframe.c >>> +++ b/src/lib/elc_naviframe.c >>> @@ -1493,7 +1493,7 @@ _item_push(Eo *obj, void *_pd, va_list *list) >>> >>> if (prev_it) elm_widget_focused_object_clear(VIEW(prev_it)); >>> _resize_object_reset(obj, it, prev_it, >>> - (prev_it ? : EINA_FALSE, EINA_TRUE)); >>> + (prev_it ? EINA_FALSE : EINA_TRUE)); >>> if (prev_it) >>> { >>> if (sd->freeze_events) |