Pointer as bool (libsdl-org#7214)
This commit is contained in:
1 parent
23db971681
commit
d8600f717e
371 files changed
+2448
-2442
No files matched your search
@@ -418,7 +418,7 @@ static SDL_Window *createMouseSuiteTestWindow(void)
|
||||
*/
|
||||
static void destroyMouseSuiteTestWindow(SDL_Window *window)
|
||||
{
|
||||
if (window != NULL) {
|
||||
if (window) {
|
||||
SDL_DestroyWindow(window);
|
||||
window = NULL;
|
||||
SDLTest_AssertPass("SDL_DestroyWindow()");
|
||||
@@ -454,7 +454,7 @@ static int mouse_warpMouseInWindow(void *arg)
|
||||
yPositions[5] = (float)h + 1;
|
||||
/* Create test window */
|
||||
window = createMouseSuiteTestWindow();
|
||||
if (window == NULL) {
|
||||
if (!window) {
|
||||
return TEST_ABORTED;
|
||||
}
|
||||
|
||||
@@ -507,7 +507,7 @@ static int mouse_getMouseFocus(void *arg)
|
||||
|
||||
/* Create test window */
|
||||
window = createMouseSuiteTestWindow();
|
||||
if (window == NULL) {
|
||||
if (!window) {
|
||||
return TEST_ABORTED;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user