From bd7dbdec48a48a70b8f380a928325291c53ecaf0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 3 May 2021 14:46:09 -0400 Subject: Shrink puglGetViewHint() implementation --- src/implementation.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') diff --git a/src/implementation.c b/src/implementation.c index d3a6647..4fe6a8a 100644 --- a/src/implementation.c +++ b/src/implementation.c @@ -222,11 +222,7 @@ puglSetViewHint(PuglView* view, PuglViewHint hint, int value) int puglGetViewHint(const PuglView* view, PuglViewHint hint) { - if (hint < PUGL_NUM_VIEW_HINTS) { - return view->hints[hint]; - } - - return PUGL_DONT_CARE; + return (hint < PUGL_NUM_VIEW_HINTS) ? view->hints[hint] : PUGL_DONT_CARE; } PuglStatus -- cgit v1.2.1