CLang-tidy.

This commit is contained in:
Jeff Young 2022-12-24 22:10:53 +00:00
parent 826508eee8
commit 91dc79169a
1 changed files with 2 additions and 3 deletions

View File

@ -150,8 +150,7 @@ DIALOG_SHIM::~DIALOG_SHIM()
if( HasKiway() ) if( HasKiway() )
Kiway().SetBlockingDialog( nullptr ); Kiway().SetBlockingDialog( nullptr );
if( m_qmodal_parent_disabler ) delete m_qmodal_parent_disabler;
delete m_qmodal_parent_disabler; // usually NULL by now
} }
@ -599,7 +598,7 @@ void DIALOG_SHIM::OnCharHook( wxKeyEvent& aEvt )
[&]( int& idx ) [&]( int& idx )
{ {
// Wrap-around modulus // Wrap-around modulus
int size = m_tabOrder.size(); int size = (int) m_tabOrder.size();
idx = ( ( idx + delta ) % size + size ) % size; idx = ( ( idx + delta ) % size + size ) % size;
}; };