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/military/Unit.hpp | |
parent | 6b3d2315225468e03bef30e942263fe9b8fc06fa (diff) |
Changed return types to std::string_view
Diffstat (limited to 'src/openvic-simulation/military/Unit.hpp')
-rw-r--r-- | src/openvic-simulation/military/Unit.hpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/openvic-simulation/military/Unit.hpp b/src/openvic-simulation/military/Unit.hpp index 65e6259..de30763 100644 --- a/src/openvic-simulation/military/Unit.hpp +++ b/src/openvic-simulation/military/Unit.hpp @@ -57,9 +57,9 @@ namespace OpenVic { icon_t get_icon() const; type_t get_type() const; - std::string const& get_sprite() const; + std::string_view get_sprite() const; bool is_active() const; - std::string const& get_unit_type() const; + std::string_view get_unit_type() const; bool has_floating_flag() const; uint32_t get_priority() const; @@ -94,9 +94,9 @@ namespace OpenVic { LandUnit(LandUnit&&) = default; bool get_primary_culture() const; - std::string const& get_sprite_override() const; - std::string const& get_sprite_mount() const; - std::string const& get_sprite_mount_attach_node() const; + std::string_view get_sprite_override() const; + std::string_view get_sprite_mount() const; + std::string_view get_sprite_mount_attach_node() const; fixed_point_t get_reconnaissance() const; fixed_point_t get_attack() const; @@ -138,8 +138,8 @@ namespace OpenVic { bool can_sail() const; bool is_transport() const; bool is_capital() const; - std::string const& get_move_sound() const; - std::string const& get_select_sound() const; + std::string_view get_move_sound() const; + std::string_view get_select_sound() const; fixed_point_t get_colonial_points() const; bool can_build_overseas() const; uint32_t get_min_port_level() const; |