From 2818428db491128fd663e6ec46a69aba51476282 Mon Sep 17 00:00:00 2001 From: englebass Date: Tue, 30 Mar 2010 12:21:12 +0000 Subject: [PATCH] efreet: benefit from stringshare Since both values are stringshared, we can use direct comparison. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/efreet@47591 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/efreet_menu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/efreet_menu.c b/src/lib/efreet_menu.c index c39de5a..46f3c64 100644 --- a/src/lib/efreet_menu.c +++ b/src/lib/efreet_menu.c @@ -2854,7 +2854,7 @@ efreet_menu_filter_or_matches(Efreet_Menu_Filter_Op *op, Efreet_Menu_Desktop *md if (op->filenames) { EINA_LIST_FOREACH(op->filenames, l, t) - if (!strcmp(t, md->id)) return 1; + if (t == md->id) return 1; } if (op->filters) @@ -2900,7 +2900,7 @@ efreet_menu_filter_and_matches(Efreet_Menu_Filter_Op *op, Efreet_Menu_Desktop *m { EINA_LIST_FOREACH(op->filenames, l, t) { - if (strcmp(t, md->id)) return 0; + if (t != md->id) return 0; } } @@ -2950,7 +2950,7 @@ efreet_menu_filter_not_matches(Efreet_Menu_Filter_Op *op, Efreet_Menu_Desktop *m { EINA_LIST_FOREACH(op->filenames, l, t) { - if (!strcmp(t, md->id)) return 0; + if (t == md->id) return 0; } } -- 2.7.4