From f3ffd7659eb6ecd62bd8d1957d2f390c558d7b0e Mon Sep 17 00:00:00 2001 From: BrentVL-1952840 <70229620+Brentdevent@users.noreply.github.com> Date: Thu, 13 Apr 2023 11:35:06 +0200 Subject: [PATCH] Remove const return type --- src/client/component/workshop.cpp | 4 ++-- src/client/component/workshop.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/client/component/workshop.cpp b/src/client/component/workshop.cpp index 824c74a5..214ef824 100644 --- a/src/client/component/workshop.cpp +++ b/src/client/component/workshop.cpp @@ -63,7 +63,7 @@ namespace workshop } } - const std::string get_mod_name(const std::string& mod_id) + std::string get_mod_name(const std::string& mod_id) { if (mod_id == "usermaps") { @@ -113,7 +113,7 @@ namespace workshop } } - const std::string get_usermap_publisher_id(const std::string& mapname) + std::string get_usermap_publisher_id(const std::string& mapname) { const auto total_usermaps = *reinterpret_cast(0x1567B3580_g); diff --git a/src/client/component/workshop.hpp b/src/client/component/workshop.hpp index 71e5098b..5ef97818 100644 --- a/src/client/component/workshop.hpp +++ b/src/client/component/workshop.hpp @@ -2,8 +2,8 @@ namespace workshop { - const std::string get_usermap_publisher_id(const std::string& mapname); - const std::string get_mod_name(const std::string& mod_id); + std::string get_usermap_publisher_id(const std::string& mapname); + std::string get_mod_name(const std::string& mod_id); bool check_valid_usermap_id(const std::string& mapname, const std::string& pub_id); bool check_valid_mod_id(const std::string& pub_id); void load_mod_if_needed(const std::string& usermap, const std::string& mod);