Fix -Wuninitialized warning in tool manager
Fixes #11866 https://gitlab.com/kicad/code/kicad/-/issues/11866
This commit is contained in:
parent
aad85a83da
commit
1c04eb6d0e
|
@ -902,7 +902,7 @@ void TOOL_MANAGER::DispatchContextMenu( const TOOL_EVENT& aEvent )
|
||||||
m_menuOwner = -1;
|
m_menuOwner = -1;
|
||||||
|
|
||||||
// Restore cursor settings
|
// Restore cursor settings
|
||||||
for( auto cursorSetting : m_cursorSettings )
|
for( auto const& cursorSetting : m_cursorSettings )
|
||||||
{
|
{
|
||||||
auto it = m_toolIdIndex.find( cursorSetting.first );
|
auto it = m_toolIdIndex.find( cursorSetting.first );
|
||||||
wxASSERT( it != m_toolIdIndex.end() );
|
wxASSERT( it != m_toolIdIndex.end() );
|
||||||
|
|
Loading…
Reference in New Issue