diff options
| author | Lioncash <mathew1800@gmail.com> | 2014-06-24 13:39:27 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2014-06-24 13:39:27 -0400 |
| commit | 832d0bbdb94472917b111c06b7e54a47f4be4fcf (patch) | |
| tree | 65def7ad054da31588d22835b40f05751887e65e /Source/Core/Common/IniFile.h | |
| parent | 4138702336601b79938889a68144c24c03ccfc14 (diff) | |
| parent | 516369594f475f93df290d6488c2eccd99618023 (diff) | |
Merge pull request #534 from jordan-woyak/ini-file-fix
Store ini sections in a std::list to prevent pointer invalidation.
Diffstat (limited to 'Source/Core/Common/IniFile.h')
| -rw-r--r-- | Source/Core/Common/IniFile.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/Common/IniFile.h b/Source/Core/Common/IniFile.h index 1d006b802f..3ff7e39794 100644 --- a/Source/Core/Common/IniFile.h +++ b/Source/Core/Common/IniFile.h @@ -5,6 +5,7 @@ #pragma once #include <cstring> +#include <list> #include <map> #include <string> #include <vector> @@ -116,7 +117,7 @@ public: Section* GetOrCreateSection(const std::string& section); private: - std::vector<Section> sections; + std::list<Section> sections; const Section* GetSection(const std::string& section) const; Section* GetSection(const std::string& section); |
