1
0
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:
Ivan Savenko
2025-07-02 18:23:02 +03:00
parent 5caf43a63c
commit e12765dca0
45 changed files with 448 additions and 461 deletions

View File

@@ -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({