Commit 52be02d1 authored by hjk's avatar hjk Committed by hjk
Browse files

QMakeParser: save one ByteArray construction



Change-Id: I2845fdefb8b32de227f08017e0e3ad98923d1c87
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 6804b520
...@@ -221,7 +221,7 @@ bool QMakeParser::read(ProFile *pro) ...@@ -221,7 +221,7 @@ bool QMakeParser::read(ProFile *pro)
} }
QByteArray bcont = file.readAll(); QByteArray bcont = file.readAll();
if (bcont.startsWith(QByteArray("\xef\xbb\xbf"))) { if (bcont.startsWith("\xef\xbb\xbf")) {
// UTF-8 BOM will cause subtle errors // UTF-8 BOM will cause subtle errors
m_handler->message(QMakeParserHandler::ParserIoError, m_handler->message(QMakeParserHandler::ParserIoError,
fL1S("Unexpected UTF-8 BOM in %1").arg(pro->fileName())); fL1S("Unexpected UTF-8 BOM in %1").arg(pro->fileName()));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment