diff options
author | hop311 <hop3114@gmail.com> | 2023-10-13 00:43:10 +0200 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2023-10-13 00:43:10 +0200 |
commit | d95c3c9da75018e3e959e5493ebd9c520e00bf7a (patch) | |
tree | 4ad745778dea488ad10509cf17d349c3ef0cc229 /src/openvic-simulation/economy | |
parent | 6b3d2315225468e03bef30e942263fe9b8fc06fa (diff) |
Changed return types to std::string_view
Diffstat (limited to 'src/openvic-simulation/economy')
-rw-r--r-- | src/openvic-simulation/economy/Building.cpp | 2 | ||||
-rw-r--r-- | src/openvic-simulation/economy/Building.hpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/openvic-simulation/economy/Building.cpp b/src/openvic-simulation/economy/Building.cpp index d27c91a..23bd04c 100644 --- a/src/openvic-simulation/economy/Building.cpp +++ b/src/openvic-simulation/economy/Building.cpp @@ -17,7 +17,7 @@ BuildingType const& Building::get_type() const { return type; } -std::string const& Building::get_on_completion() const { +std::string_view Building::get_on_completion() const { return on_completion; } diff --git a/src/openvic-simulation/economy/Building.hpp b/src/openvic-simulation/economy/Building.hpp index 3f74c3d..3d1e24b 100644 --- a/src/openvic-simulation/economy/Building.hpp +++ b/src/openvic-simulation/economy/Building.hpp @@ -70,7 +70,7 @@ namespace OpenVic { Building(Building&&) = default; BuildingType const& get_type() const; - std::string const& get_on_completion() const; + std::string_view get_on_completion() const; fixed_point_t get_completion_size() const; level_t get_max_level() const; std::map<Good const*, fixed_point_t> const& get_goods_cost() const; |