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:
@@ -254,7 +254,7 @@ void MenuTestCase::FindInMenu()
|
|||||||
|
|
||||||
// Find by id:
|
// Find by id:
|
||||||
CPPUNIT_ASSERT( menuHelp->FindItem(MenuTestCase_Bar) );
|
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)
|
for (n=0; n < menuHelp->GetMenuItemCount(); ++n)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user