Commit 38944d66 authored by Simon Hausmann's avatar Simon Hausmann Committed by Jani Heikkinen
Browse files

Fix syncqt.pl not respecting #pragma qt_no_master_include in files with Windows line endings


We need to do the same chop trick that we do further down the file.

Change-Id: If4f832f375a11473e66adfcfa76a3b4504b3d406
Task-number: QTBUG-51324
Reviewed-by: default avatarIikka Eklund <iikka.eklund@theqtcompany.com>
Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Showing with 1 addition and 0 deletions
......@@ -182,6 +182,7 @@ sub shouldMasterInclude {
if (open(F, "<$iheader")) {
while (<F>) {
chomp;
chop if /\r$/;
return 0 if (/^\#pragma qt_no_master_include$/);
}
close(F);
......
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