mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Fix sonar warnings, convert spaces -> tabs
This commit is contained in:
@@ -48,8 +48,8 @@ CreditsScreen::CreditsScreen(Rect rect)
|
||||
size_t firstQuote = text.find('\"') + 1;
|
||||
text = text.substr(firstQuote, text.find('\"', firstQuote) - firstQuote);
|
||||
|
||||
auto translateCredits = [&text](std::map<std::string, std::string> replacements){
|
||||
for(auto & item : replacements)
|
||||
const auto & translateCredits = [&text](const std::map<std::string, std::string> & replacements){
|
||||
for(const auto & item : replacements)
|
||||
boost::replace_first(text, "{" + item.second + ":}", "{" + LIBRARY->generaltexth->translate(item.first) + ":}");
|
||||
};
|
||||
translateCredits({
|
||||
|
||||
Reference in New Issue
Block a user