diff options
| author | Lioncash <mathew1800@gmail.com> | 2015-06-28 19:08:28 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2015-06-28 19:52:40 -0400 |
| commit | daa205990fa043092394931b85be6efdc37408df (patch) | |
| tree | d1e85f070ba34dc138e6744ddc18453b8f525d10 /Source/Core/DolphinWX/VideoConfigDiag.cpp | |
| parent | 1120132d261f08fae7bb19933a4d814d52eca8a3 (diff) | |
Use emplace() instead of insert() where applicable for maps.
Diffstat (limited to 'Source/Core/DolphinWX/VideoConfigDiag.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/VideoConfigDiag.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/VideoConfigDiag.cpp b/Source/Core/DolphinWX/VideoConfigDiag.cpp index 9d3d66959c..0e8044b25c 100644 --- a/Source/Core/DolphinWX/VideoConfigDiag.cpp +++ b/Source/Core/DolphinWX/VideoConfigDiag.cpp @@ -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() |
