diff options
Diffstat (limited to 'src/plugins/genericprojectmanager/pkgconfigtool.cpp')
-rw-r--r-- | src/plugins/genericprojectmanager/pkgconfigtool.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/plugins/genericprojectmanager/pkgconfigtool.cpp b/src/plugins/genericprojectmanager/pkgconfigtool.cpp index a2f8b3b924..127d82d473 100644 --- a/src/plugins/genericprojectmanager/pkgconfigtool.cpp +++ b/src/plugins/genericprojectmanager/pkgconfigtool.cpp @@ -90,9 +90,7 @@ void PkgConfigTool::packages_helper() const if (ch.isSpace()) { do { ++index; } while (index < cflags.size() && cflags.at(index).isSpace()); - } - - else if (ch == QLatin1Char('-') && index + 1 < cflags.size()) { + } else if (ch == QLatin1Char('-') && index + 1 < cflags.size()) { ++index; const QChar opt = cflags.at(index); @@ -109,9 +107,7 @@ void PkgConfigTool::packages_helper() const qDebug() << "*** add include path:" << cflags.mid(start, index - start); package.includePaths.append(cflags.mid(start, index - start)); } - } - - else { + } else { for (; index < cflags.size(); ++index) { if (cflags.at(index).isSpace()) break; |