mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
Use emplace() instead of insert() where applicable for maps.
This commit is contained in:
@ -655,7 +655,7 @@ SettingRadioButton* VideoConfigDiag::CreateRadioButton(wxWindow* parent, const w
|
||||
/* Use this to register descriptions for controls which have NOT been created using the Create* functions from above */
|
||||
wxControl* VideoConfigDiag::RegisterControl(wxControl* const control, const wxString& description)
|
||||
{
|
||||
ctrl_descs.insert(std::pair<wxWindow*, wxString>(control, description));
|
||||
ctrl_descs.emplace(control, description);
|
||||
control->Bind(wxEVT_ENTER_WINDOW, &VideoConfigDiag::Evt_EnterControl, this);
|
||||
control->Bind(wxEVT_LEAVE_WINDOW, &VideoConfigDiag::Evt_LeaveControl, this);
|
||||
return control;
|
||||
@ -710,7 +710,7 @@ void VideoConfigDiag::CreateDescriptionArea(wxPanel* const page, wxBoxSizer* con
|
||||
desc_sizer->Add(desc_text, 1, wxEXPAND | wxLEFT | wxRIGHT | wxBOTTOM, 5);
|
||||
|
||||
// Store description text object for later lookup
|
||||
desc_texts.insert(std::pair<wxWindow*, wxStaticText*>(page, desc_text));
|
||||
desc_texts.emplace(page, desc_text);
|
||||
}
|
||||
|
||||
void VideoConfigDiag::PopulatePostProcessingShaders()
|
||||
|
Reference in New Issue
Block a user