Fix compile error

wx 3.0 doesn't have emplace_back() so we need to accept the
copy-instantiate penalty
This commit is contained in:
Seth Hillbrand 2019-07-17 14:32:22 -07:00
parent 3de00eef5f
commit b877d17138
1 changed files with 3 additions and 3 deletions

View File

@ -838,9 +838,9 @@ void DIALOG_FIELDS_EDITOR_GLOBAL::AddField( const wxString& aName,
m_config->Read( "SymbolFieldEditor/Show/" + aName, &defaultShow );
m_config->Read( "SymbolFieldEditor/GroupBy/" + aName, &defaultSortBy );
fieldsCtrlRow.emplace_back( wxVariant( aName ) );
fieldsCtrlRow.emplace_back( wxVariant( defaultShow ) );
fieldsCtrlRow.emplace_back( wxVariant( defaultSortBy ) );
fieldsCtrlRow.push_back( wxVariant( aName ) );
fieldsCtrlRow.push_back( wxVariant( defaultShow ) );
fieldsCtrlRow.push_back( wxVariant( defaultSortBy ) );
m_fieldsCtrl->AppendItem( fieldsCtrlRow );
}