1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-04 02:41:19 +00:00

Don't assign a variable passed by value

This commit is contained in:
jvoisin 2021-05-21 18:15:31 +02:00
parent f27d7c66ff
commit e51669c05d

View File

@ -45,19 +45,19 @@ public:
{ {
// Russian alphabet // Russian alphabet
if (ch >= 0x0410 && ch < 0x0430) if (ch >= 0x0410 && ch < 0x0430)
return ch += 0x20; return ch + 0x20;
// Cyrillic IO character // Cyrillic IO character
if (ch == 0x0401) if (ch == 0x0401)
return ch += 0x50; return ch + 0x50;
// Latin alphabet // Latin alphabet
if (ch >= 0x41 && ch < 0x60) if (ch >= 0x41 && ch < 0x60)
return ch += 0x20; return ch + 0x20;
// Deutch characters // Deutch characters
if (ch == 0xc4 || ch == 0xd6 || ch == 0xdc) if (ch == 0xc4 || ch == 0xd6 || ch == 0xdc)
return ch += 0x20; return ch + 0x20;
if (ch == 0x1e9e) if (ch == 0x1e9e)
return 0xdf; return 0xdf;