UI-Files: Codacy fix codacy errors and warnings

This commit is contained in:
refractionpcsx2
2022-08-26 22:58:42 +01:00
parent f841a8ba58
commit 93f4277b3c
4 changed files with 4 additions and 6 deletions

View File

@@ -76,7 +76,7 @@ static std::time_t ConvertFileTimeToUnixTime(const FILETIME& ft)
static inline bool FileSystemCharacterIsSane(char c, bool StripSlashes)
{
if (!(c >= 'a' && c <= 'z') && !(c >= 'A' && c <= 'Z') && !(c >= '0' && c <= '9') && c != ' ' && c != ' ' &&
if (!(c >= 'a' && c <= 'z') && !(c >= 'A' && c <= 'Z') && !(c >= '0' && c <= '9') && c != ' ' &&
c != '_' && c != '-' && c != '.')
{
if (!StripSlashes && (c == '/' || c == '\\'))