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

Store ini sections in a std::list to prevent pointer invalidation. #534

Merged
merged 1 commit into from Jun 24, 2014

Conversation

jordan-woyak
Copy link
Member

Store ini sections in a std::list (rather than vector) to prevent unexpected pointer invalidation with use of GetOrCreateSection.

@@ -323,7 +323,7 @@ bool IniFile::GetLines(const std::string& sectionName, std::vector<std::string>*

void IniFile::SortSections()
{
std::sort(sections.begin(), sections.end());
sections.sort(), sections.end();

This comment was marked as off-topic.

@jordan-woyak
Copy link
Member Author

Yeah, it was a typo. stupid comma operator.. :p

@delroth
Copy link
Member

delroth commented Jun 24, 2014

LGTM

…xpected pointer invalidation with use of GetOrCreateSection.
@lioncash
Copy link
Member

Looks good to me.

lioncash added a commit that referenced this pull request Jun 24, 2014
Store ini sections in a std::list to prevent pointer invalidation.
@lioncash lioncash merged commit 832d0bb into dolphin-emu:master Jun 24, 2014
@jordan-woyak jordan-woyak deleted the ini-file-fix branch December 29, 2018 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants