summaryrefslogtreecommitdiff
path: root/src/countries.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/countries.cpp')
-rw-r--r--src/countries.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/countries.cpp b/src/countries.cpp
index 34aacf1..5d1ea5a 100644
--- a/src/countries.cpp
+++ b/src/countries.cpp
@@ -226,12 +226,12 @@ s32 country::get_count()
return country_map_count;
}
-char* country::get_code_by_index(s32 index)
+const char* country::get_code_by_index(s32 index)
{
return country_map[index].country_code;
}
-static s32 get_index_by_country_code(char* country_code)
+static s32 get_index_by_country_code(const char* country_code)
{
for (u32 i = 0; i < country_map_count; i++)
{
@@ -242,7 +242,7 @@ static s32 get_index_by_country_code(char* country_code)
return -1;
}
-bool country::is_EU(char* country_code)
+bool country::is_EU(const char* country_code)
{
s32 index = get_index_by_country_code(country_code);
if (index == -1) return 0;
@@ -250,7 +250,7 @@ bool country::is_EU(char* country_code)
return country_map[index].is_EU;
}
-bool country::is_enabled(char* country_code)
+bool country::is_enabled(const char* country_code)
{
s32 index = get_index_by_country_code(country_code);
if (index == -1) return 0;
@@ -266,7 +266,7 @@ time_t country::get_default_invoice_expire_duration(char* country_code)
return country_map[index].get_default_invoice_expire_duration();
}
-bool country::tax_is_implemented(char* country_code)
+bool country::tax_is_implemented(const char* country_code)
{
s32 index = get_index_by_country_code(country_code);
if (index == -1) return false;
@@ -307,7 +307,7 @@ time_t country::get_invoice_date_to_use_for_tax_report(char* country_code, invoi
return country_map[index].get_invoice_date_to_use_for_tax_report(inv);
}
-u32 country::get_available_tax_rates(char* country_code, tax_rate* buffer, u32 buffer_size)
+u32 country::get_available_tax_rates(const char* country_code, tax_rate* buffer, u32 buffer_size)
{
s32 index = get_index_by_country_code(country_code);
assert(index != -1);