QMakeParser: save one ByteArray construction

Change-Id: I2845fdefb8b32de227f08017e0e3ad98923d1c87
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2013-01-22 11:00:20 +01:00
committed by hjk
parent 6804b52030
commit 52be02d1cb

View File

@@ -221,7 +221,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()));