mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 15:59:18 +02:00
reformat: parameters can be made const
This commit is contained in:
@@ -33,7 +33,7 @@ void locale::init()
|
||||
WriteLog("translation: " + std::to_string(lang_mapping.size()) + " strings loaded");
|
||||
}
|
||||
|
||||
const std::string& locale::lookup_s(const std::string &msg, bool constant)
|
||||
const std::string& locale::lookup_s(const std::string &msg, const bool constant)
|
||||
{
|
||||
if (constant) {
|
||||
const auto it = pointer_cache.find(&msg);
|
||||
@@ -53,7 +53,7 @@ const std::string& locale::lookup_s(const std::string &msg, bool constant)
|
||||
return msg;
|
||||
}
|
||||
|
||||
const char* locale::lookup_c(const char *msg, bool constant)
|
||||
const char* locale::lookup_c(const char *msg, const bool constant)
|
||||
{
|
||||
if (constant) {
|
||||
const auto it = pointer_cache.find(msg);
|
||||
|
||||
Reference in New Issue
Block a user