1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00

windows/controls.c: fix some nonstandard indentation.

Happened to spot this while I was fixing the const issues in the
previous commit.
This commit is contained in:
Simon Tatham 2022-07-30 14:44:09 +01:00
parent 10f47902e5
commit 68985ecb1e

View File

@ -1581,16 +1581,16 @@ void winctrl_layout(struct dlgparam *dp, struct winctrls *wc,
buttons = snewn(ctrl->radio.nbuttons, struct radio); buttons = snewn(ctrl->radio.nbuttons, struct radio);
for (i = 0; i < ctrl->radio.nbuttons; i++) { for (i = 0; i < ctrl->radio.nbuttons; i++) {
buttons[i].text = buttons[i].text =
shortcut_escape(ctrl->radio.buttons[i], shortcut_escape(ctrl->radio.buttons[i],
(char)(ctrl->radio.shortcuts ? (char)(ctrl->radio.shortcuts ?
ctrl->radio.shortcuts[i] : ctrl->radio.shortcuts[i] :
NO_SHORTCUT)); NO_SHORTCUT));
buttons[i].id = base_id + 1 + i; buttons[i].id = base_id + 1 + i;
if (ctrl->radio.shortcuts) { if (ctrl->radio.shortcuts) {
assert(nshortcuts < MAX_SHORTCUTS_PER_CTRL); assert(nshortcuts < MAX_SHORTCUTS_PER_CTRL);
shortcuts[nshortcuts++] = ctrl->radio.shortcuts[i]; shortcuts[nshortcuts++] = ctrl->radio.shortcuts[i];
} }
} }
radioline_common(&pos, escaped, base_id, radioline_common(&pos, escaped, base_id,
@ -1598,7 +1598,7 @@ void winctrl_layout(struct dlgparam *dp, struct winctrls *wc,
buttons, ctrl->radio.nbuttons); buttons, ctrl->radio.nbuttons);
for (i = 0; i < ctrl->radio.nbuttons; i++) { for (i = 0; i < ctrl->radio.nbuttons; i++) {
sfree((char *)buttons[i].text); sfree((char *)buttons[i].text);
} }
sfree(buttons); sfree(buttons);
sfree(escaped); sfree(escaped);