diff options
author | Hop311 <Hop3114@gmail.com> | 2024-07-19 00:26:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-19 00:26:16 +0200 |
commit | a673f89bb2705826b1c646365eab1775727372b7 (patch) | |
tree | 3f2a270b5b85f91a22289091084a30c105f10f4d /src/openvic-simulation/dataloader/Dataloader.cpp | |
parent | 93d095ba30747c7158882668577c854be7ea39a1 (diff) | |
parent | d236dcf30c001e540377184565f4d173ed56f76e (diff) |
Merge pull request #171 from OpenVicProject/optimize/string-interning
Optimize some string interning cases
Diffstat (limited to 'src/openvic-simulation/dataloader/Dataloader.cpp')
-rw-r--r-- | src/openvic-simulation/dataloader/Dataloader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/openvic-simulation/dataloader/Dataloader.cpp b/src/openvic-simulation/dataloader/Dataloader.cpp index 4fbd86b..2058ce5 100644 --- a/src/openvic-simulation/dataloader/Dataloader.cpp +++ b/src/openvic-simulation/dataloader/Dataloader.cpp @@ -371,7 +371,7 @@ bool Dataloader::_load_units(DefinitionManager& definition_manager) const { definition_manager.get_economy_manager().get_good_definition_manager(), definition_manager.get_map_definition().get_terrain_type_manager(), definition_manager.get_modifier_manager(), - parse_defines(file).get_file_node() + parse_defines(file) ); } ); @@ -905,7 +905,7 @@ bool Dataloader::load_defines(DefinitionManager& definition_manager) { ret = false; } if (!definition_manager.get_economy_manager().load_production_types_file(definition_manager.get_pop_manager(), - parse_defines_cached(lookup_file(production_types_file)).get_file_node() + parse_defines_cached(lookup_file(production_types_file)) )) { Logger::error("Failed to load production types!"); ret = false; @@ -1001,7 +1001,7 @@ bool Dataloader::load_defines(DefinitionManager& definition_manager) { ret = false; } if (!definition_manager.get_military_manager().get_wargoal_type_manager().load_wargoal_file( - parse_defines_cached(lookup_file(cb_types_file)).get_file_node() + parse_defines_cached(lookup_file(cb_types_file)) )) { Logger::error("Failed to load wargoals!"); ret = false; |