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:
+1
-1
@@ -101,7 +101,7 @@ void OptionListRow::SetFromHandler( const OptionRowHandler *pHandler )
|
||||
|
||||
void OptionListRow::SetTextFromHandler( const OptionRowHandler *pHandler )
|
||||
{
|
||||
ASSERT( pHandler );
|
||||
ASSERT( pHandler != NULL );
|
||||
for( unsigned i = 0; i < pHandler->m_Def.m_vsChoices.size(); ++i )
|
||||
{
|
||||
// init text
|
||||
|
||||
Reference in New Issue
Block a user