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);
|
count = arg_count_for_signature(signature);
|
||||||
for (i = 0; i < count; i++) {
|
for (i = 0; i < count; i++) {
|
||||||
signature = get_next_argument(signature, &arg);
|
signature = get_next_argument(signature, &arg);
|
||||||
|
if (arg.type != WL_ARG_NEW_ID)
|
||||||
|
continue;
|
||||||
|
|
||||||
switch (arg.type) {
|
new_proxy = proxy_create(proxy, interface, version);
|
||||||
case WL_ARG_NEW_ID:
|
if (new_proxy == NULL)
|
||||||
new_proxy = proxy_create(proxy, interface, version);
|
return NULL;
|
||||||
if (new_proxy == NULL)
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
args[i].o = &new_proxy->object;
|
args[i].o = &new_proxy->object;
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return new_proxy;
|
return new_proxy;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue