mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-06 00:33:55 +00:00
update code style
This commit is contained in:
parent
f180f3ac03
commit
c577ec56ee
@ -62,7 +62,7 @@ int showAlert(const char *title, const char *msg, const char *defaultButton,
|
|||||||
if (defaultButtonTitle != NULL) CFRelease(defaultButtonTitle);
|
if (defaultButtonTitle != NULL) CFRelease(defaultButtonTitle);
|
||||||
if (cancelButtonTitle != NULL) CFRelease(cancelButtonTitle);
|
if (cancelButtonTitle != NULL) CFRelease(cancelButtonTitle);
|
||||||
|
|
||||||
if (err != 0) return -1;
|
if (err != 0) { return -1; }
|
||||||
return (responseFlags == kCFUserNotificationDefaultResponse) ? 0 : 1;
|
return (responseFlags == kCFUserNotificationDefaultResponse) ? 0 : 1;
|
||||||
#elif defined(USE_X11)
|
#elif defined(USE_X11)
|
||||||
/* Note that args[0] is set by the xmessage() function. */
|
/* Note that args[0] is set by the xmessage() function. */
|
||||||
@ -78,7 +78,7 @@ int showAlert(const char *title, const char *msg, const char *defaultButton,
|
|||||||
asprintf(&buttonList, "%s:2,%s:3", defaultButton, cancelButton);
|
asprintf(&buttonList, "%s:2,%s:3", defaultButton, cancelButton);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buttonList == NULL) return -1; /* asprintf() failed. */
|
if (buttonList == NULL) { return -1; /* asprintf() failed. */ }
|
||||||
args[5] = "-buttons";
|
args[5] = "-buttons";
|
||||||
args[6] = buttonList;
|
args[6] = buttonList;
|
||||||
args[7] = "-default";
|
args[7] = "-default";
|
||||||
|
Loading…
Reference in New Issue
Block a user