From: Richard Rauch Date: Mon, 27 Oct 2003 15:38:14 +0000 (+0000) Subject: Converted a few "x != NULL" tests to "x" for clarity. X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=d457e1f51ad9c9f823b7b35251dc5fe5c0b7a0d7;p=freeglut Converted a few "x != NULL" tests to "x" for clarity. I think that I've touched enough lines of source for one morning. git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@253 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/src/freeglut_menu.c b/src/freeglut_menu.c index c9feea2..f49ca52 100644 --- a/src/freeglut_menu.c +++ b/src/freeglut_menu.c @@ -861,15 +861,15 @@ void FGAPIENTRY glutChangeToSubMenu( int item, const char* label, int subMenuID SFG_MenuEntry* menuEntry = NULL; freeglut_assert_ready; - freeglut_return_if_fail( fgStructure.Menu != NULL ); - freeglut_return_if_fail( subMenu != NULL ); + freeglut_return_if_fail( fgStructure.Menu ); + freeglut_return_if_fail( subMenu ); menuEntry = fghFindMenuEntry( fgStructure.Menu, item ); - freeglut_return_if_fail( menuEntry != NULL ); + freeglut_return_if_fail( menuEntry ); /* * We want it to become a sub menu entry, so: */ - if( menuEntry->Text != NULL ) + if( menuEntry->Text ) free( menuEntry->Text ); menuEntry->Text = strdup( label ); @@ -889,7 +889,7 @@ void FGAPIENTRY glutRemoveMenuItem( int item ) freeglut_assert_ready; freeglut_return_if_fail( fgStructure.Menu ); menuEntry = fghFindMenuEntry( fgStructure.Menu, item ); - freeglut_return_if_fail( menuEntry != NULL ); + freeglut_return_if_fail( menuEntry ); fgListRemove( &fgStructure.Menu->Entries, &menuEntry->Node ); free( menuEntry->Text ); free( menuEntry );