Simplify a loop's set-up and control.

Change-Id: Ie9e002d7d7fb269f3a99cce98e4250a866523360
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
This commit is contained in:
Edward Welbourne 2015-11-12 16:25:58 +01:00
parent 213111f0fc
commit 0c73bafe23

View File

@ -554,8 +554,8 @@ bool QMakeSourceFileInfo::findDeps(SourceFile *file)
// quoted strings // quoted strings
if (buffer[x] == '\'' || buffer[x] == '"') { if (buffer[x] == '\'' || buffer[x] == '"') {
const char term = buffer[x++]; const char term = buffer[x];
for(; x < buffer_len; ++x) { while (++x < buffer_len) {
if (buffer[x] == term) { if (buffer[x] == term) {
++x; ++x;
break; break;