mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 17:33:05 +00:00
COMMON: Avoid unnecessary object creation
This commit is contained in:
parent
11e486d631
commit
e79e58e077
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user