[Scummvm-git-logs] scummvm master -> e79e58e077d6332c3e9bc6c597620568574a387f

sev- sev at scummvm.org
Sun Aug 1 12:56:04 UTC 2021


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
e79e58e077 COMMON: Avoid unnecessary object creation


Commit: e79e58e077d6332c3e9bc6c597620568574a387f
    https://github.com/scummvm/scummvm/commit/e79e58e077d6332c3e9bc6c597620568574a387f
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2021-08-01T14:55:39+02:00

Commit Message:
COMMON: Avoid unnecessary object creation

Changed paths:
    common/punycode.cpp


diff --git a/common/punycode.cpp b/common/punycode.cpp
index a439f5db7d..dbef1db48a 100644
--- a/common/punycode.cpp
+++ b/common/punycode.cpp
@@ -304,7 +304,7 @@ String punycode_encodefilename(const String src) {
 			dst += '\x81';
 			dst += '\x79';
 		// Encode special symbols and non-printables
-		} else if (Common::String("/\":*[]+|\\?%<>,;=").contains(src[i]) || (byte)src[i] < 0x20) {
+		} else if (strchr("/\":*[]+|\\?%<>,;=", src[i]) || (byte)src[i] < 0x20) {
 			dst += '\x81';
 			dst += (byte)src[i] + '\x80';
 		} else {




More information about the Scummvm-git-logs mailing list