From e51669c05daff9fce3c6af91d314efbdc6cec6eb Mon Sep 17 00:00:00 2001 From: jvoisin Date: Fri, 21 May 2021 18:15:31 +0200 Subject: [PATCH] Don't assign a variable passed by value --- components/misc/stringops.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/misc/stringops.hpp b/components/misc/stringops.hpp index aa2ae105e..48deaa999 100644 --- a/components/misc/stringops.hpp +++ b/components/misc/stringops.hpp @@ -45,19 +45,19 @@ public: { // Russian alphabet if (ch >= 0x0410 && ch < 0x0430) - return ch += 0x20; + return ch + 0x20; // Cyrillic IO character if (ch == 0x0401) - return ch += 0x50; + return ch + 0x50; // Latin alphabet if (ch >= 0x41 && ch < 0x60) - return ch += 0x20; + return ch + 0x20; // Deutch characters if (ch == 0xc4 || ch == 0xd6 || ch == 0xdc) - return ch += 0x20; + return ch + 0x20; if (ch == 0x1e9e) return 0xdf;