aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/politics
diff options
context:
space:
mode:
Diffstat (limited to 'src/openvic-simulation/politics')
-rw-r--r--src/openvic-simulation/politics/Government.cpp2
-rw-r--r--src/openvic-simulation/politics/Government.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/openvic-simulation/politics/Government.cpp b/src/openvic-simulation/politics/Government.cpp
index 1a48806..16b3bc4 100644
--- a/src/openvic-simulation/politics/Government.cpp
+++ b/src/openvic-simulation/politics/Government.cpp
@@ -30,7 +30,7 @@ Timespan GovernmentType::get_term_duration() const {
return term_duration;
}
-std::string const& GovernmentType::get_flag_type() const {
+std::string_view GovernmentType::get_flag_type() const {
return flag_type_identifier;
}
diff --git a/src/openvic-simulation/politics/Government.hpp b/src/openvic-simulation/politics/Government.hpp
index c72dae6..ba8496f 100644
--- a/src/openvic-simulation/politics/Government.hpp
+++ b/src/openvic-simulation/politics/Government.hpp
@@ -24,7 +24,7 @@ namespace OpenVic {
bool holds_elections() const;
bool can_appoint_ruling_party() const;
Timespan get_term_duration() const;
- std::string const& get_flag_type() const;
+ std::string_view get_flag_type() const;
};
struct GovernmentTypeManager {