diff options
author | Michael Lutz <michi@icosahedron.de> | 2019-04-02 21:31:17 +0200 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2019-04-09 22:45:15 +0200 |
commit | d3e113eb5f618ce0174fa0dfa2591cb96e999350 (patch) | |
tree | c26b96f07fa2f5f20c0eefc4b7116fa65bb51ae0 /src/game/game_text.hpp | |
parent | baf9229931e4d5a3479892007e9bcc875bc9930b (diff) | |
download | openttd-d3e113eb5f618ce0174fa0dfa2591cb96e999350.tar.xz |
Codechange: Use std::vector instead of AutoDeleteSmallVector in GS text handling.
Diffstat (limited to 'src/game/game_text.hpp')
-rw-r--r-- | src/game/game_text.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game/game_text.hpp b/src/game/game_text.hpp index 11c63b5ab..d199a5281 100644 --- a/src/game/game_text.hpp +++ b/src/game/game_text.hpp @@ -29,12 +29,12 @@ struct LanguageStrings { /** Container for all the game strings. */ struct GameStrings { - uint version; ///< The version of the language strings. - LanguageStrings *cur_language; ///< The current (compiled) language. + uint version; ///< The version of the language strings. + std::shared_ptr<LanguageStrings> cur_language; ///< The current (compiled) language. - AutoDeleteSmallVector<LanguageStrings *> raw_strings; ///< The raw strings per language, first must be English/the master language!. - AutoDeleteSmallVector<LanguageStrings *> compiled_strings; ///< The compiled strings per language, first must be English/the master language!. - StringList string_names; ///< The names of the compiled strings. + std::vector<std::unique_ptr<LanguageStrings>> raw_strings; ///< The raw strings per language, first must be English/the master language!. + std::vector<std::shared_ptr<LanguageStrings>> compiled_strings; ///< The compiled strings per language, first must be English/the master language!. + StringList string_names; ///< The names of the compiled strings. void Compile(); }; |