mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[c23] simplify boolean checks
This commit is contained in:
@@ -172,10 +172,7 @@ static BOOL wlf_mime_is_image(const char* mime)
|
||||
|
||||
static BOOL wlf_mime_is_html(const char* mime)
|
||||
{
|
||||
if (strcmp(mime, mime_html) == 0)
|
||||
return TRUE;
|
||||
|
||||
return FALSE;
|
||||
return strcmp(mime, mime_html) == 0;
|
||||
}
|
||||
|
||||
static void wlf_cliprdr_free_server_formats(wfClipboard* clipboard)
|
||||
@@ -309,9 +306,7 @@ static BOOL wlf_cliprdr_add_client_format(wfClipboard* clipboard, const char* mi
|
||||
}
|
||||
|
||||
ClipboardUnlock(clipboard->system);
|
||||
if (wlf_cliprdr_send_client_format_list(clipboard) != CHANNEL_RC_OK)
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
return (wlf_cliprdr_send_client_format_list(clipboard) == CHANNEL_RC_OK);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -465,10 +465,7 @@ static BOOL handle_uwac_events(freerdp* instance, UwacDisplay* display)
|
||||
|
||||
static BOOL handle_window_events(freerdp* instance)
|
||||
{
|
||||
if (!instance)
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
return instance != NULL;
|
||||
}
|
||||
|
||||
static int wlfreerdp_run(freerdp* instance)
|
||||
@@ -554,10 +551,7 @@ static BOOL wlf_client_global_init(void)
|
||||
// NOLINTNEXTLINE(concurrency-mt-unsafe)
|
||||
(void)setlocale(LC_ALL, "");
|
||||
|
||||
if (freerdp_handle_signals() != 0)
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
return (freerdp_handle_signals() == 0);
|
||||
}
|
||||
|
||||
static void wlf_client_global_uninit(void)
|
||||
|
||||
Reference in New Issue
Block a user