War on -Werror, part 12: explicit bool usage.
It may save a few cycles, but it's best to be explicit on boolean operations, especially with ASSERT.
This commit is contained in:
@@ -105,7 +105,7 @@ void ScreenUnlockStatus::Init()
|
||||
case UnlockRewardType_Song:
|
||||
{
|
||||
const Song *pSong = entry.m_Song.ToSong();
|
||||
ASSERT( pSong );
|
||||
ASSERT( pSong != NULL );
|
||||
|
||||
RString title = pSong->GetDisplayMainTitle();
|
||||
RString subtitle = pSong->GetDisplaySubTitle();
|
||||
@@ -118,7 +118,7 @@ void ScreenUnlockStatus::Init()
|
||||
case UnlockRewardType_Course:
|
||||
{
|
||||
const Course *pCourse = entry.m_Course.ToCourse();
|
||||
ASSERT( pCourse );
|
||||
ASSERT( pCourse != NULL );
|
||||
|
||||
text->SetMaxWidth( MaxWidth );
|
||||
text->SetText( pCourse->GetDisplayFullTitle() );
|
||||
|
||||
Reference in New Issue
Block a user