Remove const return type

This commit is contained in:
BrentVL-1952840 2023-04-13 11:35:06 +02:00
parent ad9613df17
commit f3ffd7659e
2 changed files with 4 additions and 4 deletions

View File

@ -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<unsigned int*>(0x1567B3580_g);

View File

@ -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);