mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-26 15:58:41 +00:00
Fixed style
This commit is contained in:
parent
5fb2bda549
commit
cf97ca1511
1 changed files with 4 additions and 4 deletions
|
|
@ -156,9 +156,9 @@ bool SDL_SetClipboardData(SDL_ClipboardDataCallback callback, SDL_ClipboardClean
|
|||
}
|
||||
|
||||
char **mime_types_copy = SDL_CopyClipboardMimeTypes(mime_types, num_mime_types, true);
|
||||
if (!mime_types_copy)
|
||||
if (!mime_types_copy) {
|
||||
return SDL_SetError("unable to copy current mime types");
|
||||
|
||||
}
|
||||
SDL_SendClipboardUpdate(true, mime_types_copy, num_mime_types);
|
||||
return true;
|
||||
}
|
||||
|
|
@ -432,9 +432,9 @@ bool SDL_SetPrimarySelectionText(const char *text)
|
|||
}
|
||||
|
||||
char **mime_types = SDL_CopyClipboardMimeTypes((const char **)_this->clipboard_mime_types, _this->num_clipboard_mime_types, true);
|
||||
if (!mime_types)
|
||||
if (!mime_types) {
|
||||
return SDL_SetError("unable to copy current mime types");
|
||||
|
||||
}
|
||||
SDL_SendClipboardUpdate(true, mime_types, _this->num_clipboard_mime_types);
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue