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 <>
parent 6804b520
......@@ -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
fL1S("Unexpected UTF-8 BOM in %1").arg(pro->fileName()));
Supports Markdown
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