Warning fix

Change-Id: I3e6e57bdbcb47b58b30623f664fe47c2c31b4029
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
Leandro Melo
2012-01-12 15:42:32 +01:00
parent 0c9af57dbd
commit 3b019fe25a

View File

@@ -602,7 +602,7 @@ public:
const int stmtEnd = m_file->endOf(stmt);
if (stmtStart >= m_selEnd
|| m_extractionStart && stmtEnd > m_selEnd) {
|| (m_extractionStart && stmtEnd > m_selEnd)) {
m_done = true;
return;
}
@@ -822,8 +822,8 @@ QList<CppQuickFixOperation::Ptr> ExtractFunction::match(
const QString &name = printer.prettyName(it.key()->name());
if (usedBeforeExtraction && usedInsideExtraction
|| usedInsideExtraction && refFuncParams.contains(name)) {
if ((usedBeforeExtraction && usedInsideExtraction)
|| (usedInsideExtraction && refFuncParams.contains(name))) {
QTC_ASSERT(analyser.m_knownDecls.contains(name), return noResult());
relevantDecls.append(qMakePair(name, analyser.m_knownDecls.value(name)));
}