Fix uninitialized variable.

This commit is contained in:
Jeff Young 2020-11-21 20:57:13 +00:00
parent 1391774f64
commit 3a4bd6fb8b
2 changed files with 3 additions and 4 deletions

View File

@ -366,12 +366,10 @@ const wxCursor& CURSOR_STORE::Get( KICURSOR aIdKey ) const
const auto find_iter = m_store.find( aIdKey );
if( find_iter != m_store.end() )
{
return find_iter->second;
}
wxASSERT_MSG( false,
wxString::Format( "Could not find cursor with ID %d", static_cast<int>( aIdKey ) ) );
wxASSERT_MSG( false, wxString::Format( "Could not find cursor with ID %d",
static_cast<int>( aIdKey ) ) );
return wxNullCursor;
}

View File

@ -105,6 +105,7 @@ EE_SELECTION_TOOL::EE_SELECTION_TOOL() :
m_exclusive_or( false ),
m_multiple( false ),
m_skip_heuristics( false ),
m_nonModifiedCursor( KICURSOR::ARROW ),
m_isSymbolEditor( false ),
m_isLibView( false ),
m_unit( 0 ),