Fix 'naked new' warning

1164-fix
MrSimbax 2020-07-06 14:14:24 +02:00 committed by Mateusz Przybył
parent faa4a6eefa
commit 124467c6e1
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ int StrUtils::Utf8CharSizeAt(const std::string &str, unsigned int pos)
// Invalid char - unexpected continuation byte
if((c & 0b11000000) == 0b10000000)
throw new std::invalid_argument("Unexpected UTF-8 continuation byte");
throw std::invalid_argument("Unexpected UTF-8 continuation byte");
return 1;
}