Fix harmless gcc -Wconversion-null warning in menu unit test
Don't compare with NULL inside CPPUNIT_ASSERT() to avoid warning: passing NULL to non-pointer argument 1 of ‘Catch::BinaryExpression<T, (Catch::Internal::Operator)0u, const RhsT&> Catch::ExpressionLhs<T>::operator==(const RhsT&) [with RhsT = long int, T = wxMenuItem* const&]’ [-Wconversion-null] gcc warning.
This commit is contained in:
parent
fe7cb6f159
commit
f99d3df9c0
@ -254,7 +254,7 @@ void MenuTestCase::FindInMenu()
|
||||
|
||||
// Find by id:
|
||||
CPPUNIT_ASSERT( menuHelp->FindItem(MenuTestCase_Bar) );
|
||||
CPPUNIT_ASSERT( menuHelp->FindItem(MenuTestCase_Foo) == NULL );
|
||||
CPPUNIT_ASSERT( !menuHelp->FindItem(MenuTestCase_Foo) );
|
||||
|
||||
for (n=0; n < menuHelp->GetMenuItemCount(); ++n)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user