From c54416ae163702858ce97808753af16c8c9b5921 Mon Sep 17 00:00:00 2001 From: okan Date: Sat, 20 Jun 2009 00:55:41 +0000 Subject: compact a bit by condensing a few if-else's; from Thomas Pfaff "go on then" oga@ --- mousefunc.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'mousefunc.c') diff --git a/mousefunc.c b/mousefunc.c index ff6ddeb..b58c82c 100644 --- a/mousefunc.c +++ b/mousefunc.c @@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: mousefunc.c,v 1.11 2009/06/20 00:22:39 okan Exp $ + * $Id: mousefunc.c,v 1.12 2009/06/20 00:55:42 okan Exp $ */ #include "headers.h" @@ -226,11 +226,7 @@ mousefunc_menu_unhide(struct client_ctx *cc, void *arg) TAILQ_INIT(&menuq); TAILQ_FOREACH(cc, &Clientq, entry) if (cc->flags & CLIENT_HIDDEN) { - if (cc->label != NULL) - wname = cc->label; - else - wname = cc->name; - + wname = (cc->label) ? cc->label : cc->name; if (wname == NULL) continue; -- cgit v1.2.3-2-gb3c3