Don't copy the items being iterated

This commit is contained in:
Ian McInerney 2020-05-06 22:37:13 +01:00
parent 902e0d0c42
commit 18cd0cdb58
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ void PANEL_COLOR_SETTINGS::OnBtnResetClicked( wxCommandEvent& event )
if( !m_currentSettings )
return;
for( const std::pair<int, COLOR_SWATCH*>& pair : m_swatches )
for( const std::pair<const int, COLOR_SWATCH*>& pair : m_swatches )
{
int layer = pair.first;
COLOR_SWATCH* button = pair.second;