Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PPCSymbolDB: Use emplace() where applicable #11813

Merged
merged 2 commits into from May 9, 2023

Conversation

lioncash
Copy link
Member

@lioncash lioncash commented May 2, 2023

Avoids default constructing an entry in the map that just gets immediately overwritten. Also gets rid of some redundant map lookups.

Avoids default constructing an entry in the map that just gets
immediately overwritten. Also gets rid of some redundant map lookups.
Allows for much more convenient in-place construction.
Copy link
Contributor

@sepalani sepalani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested & LGTM.

Source/Core/Core/PowerPC/PPCSymbolDB.cpp Show resolved Hide resolved
@AdmiralCurtiss AdmiralCurtiss merged commit 8c67083 into dolphin-emu:master May 9, 2023
14 checks passed
@lioncash lioncash deleted the insert branch May 9, 2023 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants