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:
Vadim Zeitlin 2018-03-07 14:57:08 +01:00
parent fe7cb6f159
commit f99d3df9c0

View File

@ -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)
{