QMakeParser: save one ByteArray construction
Change-Id: I2845fdefb8b32de227f08017e0e3ad98923d1c87 Reviewed-by: hjk <hjk121@nokiamail.com> (cherry picked from qtcreator/52be02d1cbbf69d4f82c517c7b633ed3d13b1007)
This commit is contained in:
parent
9b52415fc9
commit
ab6d29a6cd
@ -239,7 +239,7 @@ bool QMakeParser::read(ProFile *pro)
|
||||
}
|
||||
|
||||
QByteArray bcont = file.readAll();
|
||||
if (bcont.startsWith(QByteArray("\xef\xbb\xbf"))) {
|
||||
if (bcont.startsWith("\xef\xbb\xbf")) {
|
||||
// UTF-8 BOM will cause subtle errors
|
||||
m_handler->message(QMakeParserHandler::ParserIoError,
|
||||
fL1S("Unexpected UTF-8 BOM in %1").arg(pro->fileName()));
|
||||
|
Loading…
Reference in New Issue
Block a user