mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-05-31 06:13:55 +00:00
update code style
This commit is contained in:
parent
022e79d6d3
commit
3d4f723800
@ -57,6 +57,7 @@ int showAlert(const char *title, const char *msg, const char *defaultButton,
|
||||
cancelButtonTitle,
|
||||
NULL,
|
||||
&responseFlags);
|
||||
|
||||
if (alertHeader != NULL) CFRelease(alertHeader);
|
||||
if (alertMessage != NULL) CFRelease(alertMessage);
|
||||
if (defaultButtonTitle != NULL) CFRelease(defaultButtonTitle);
|
||||
|
@ -560,7 +560,7 @@ void close_window_by_PId(uintptr pid, uintptr isHwnd){
|
||||
// CloseWindow
|
||||
void close_window_by_Id(MData m_data){
|
||||
// Check window validity
|
||||
if (!IsValid()) {return;}
|
||||
if (!IsValid()) { return; }
|
||||
#if defined(IS_MACOSX)
|
||||
AXUIElementRef b = NULL;
|
||||
|
||||
@ -591,7 +591,7 @@ void close_window_by_Id(MData m_data){
|
||||
|
||||
char* get_main_title(){
|
||||
// Check if the window is valid
|
||||
if (!IsValid()) {return "IsValid failed.";}
|
||||
if (!IsValid()) { return "IsValid failed."; }
|
||||
|
||||
return get_title_by_hand(mData);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user