mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-13 01:20:34 +02:00
Fix some of the new warnings from sonarcloud
This commit is contained in:
@ -152,11 +152,9 @@ void TextLocalizationContainer::exportAllTexts(std::map<std::string, std::map<st
|
||||
std::string textToWrite;
|
||||
std::string modName = entry.second.baseStringModContext;
|
||||
|
||||
if (entry.second.baseStringModContext == entry.second.identifierModContext)
|
||||
{
|
||||
if (modName.find('.') != std::string::npos)
|
||||
modName = modName.substr(0, modName.find('.'));
|
||||
}
|
||||
if (entry.second.baseStringModContext == entry.second.identifierModContext && modName.find('.') != std::string::npos)
|
||||
modName = modName.substr(0, modName.find('.'));
|
||||
|
||||
boost::range::replace(modName, '.', '_');
|
||||
|
||||
textToWrite = entry.second.translatedText;
|
||||
|
Reference in New Issue
Block a user