mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
client: simplify create_outgoing_proxy() loop
Decrease the indentation a bit. No functional change. Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
parent
830883e5b2
commit
7a1e7dd549
1 changed files with 6 additions and 10 deletions
|
|
@ -733,18 +733,14 @@ create_outgoing_proxy(struct wl_proxy *proxy, const struct wl_message *message,
|
|||
count = arg_count_for_signature(signature);
|
||||
for (i = 0; i < count; i++) {
|
||||
signature = get_next_argument(signature, &arg);
|
||||
if (arg.type != WL_ARG_NEW_ID)
|
||||
continue;
|
||||
|
||||
switch (arg.type) {
|
||||
case WL_ARG_NEW_ID:
|
||||
new_proxy = proxy_create(proxy, interface, version);
|
||||
if (new_proxy == NULL)
|
||||
return NULL;
|
||||
new_proxy = proxy_create(proxy, interface, version);
|
||||
if (new_proxy == NULL)
|
||||
return NULL;
|
||||
|
||||
args[i].o = &new_proxy->object;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
args[i].o = &new_proxy->object;
|
||||
}
|
||||
|
||||
return new_proxy;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue