Skip to content
Snippets Groups Projects
Commit 3b019fe2 authored by Leandro Melo's avatar Leandro Melo
Browse files

Warning fix


Change-Id: I3e6e57bdbcb47b58b30623f664fe47c2c31b4029
Reviewed-by: default avatarKai Koehne <kai.koehne@nokia.com>
parent 0c9af57d
No related branches found
No related tags found
No related merge requests found
...@@ -602,7 +602,7 @@ public: ...@@ -602,7 +602,7 @@ public:
const int stmtEnd = m_file->endOf(stmt); const int stmtEnd = m_file->endOf(stmt);
if (stmtStart >= m_selEnd if (stmtStart >= m_selEnd
|| m_extractionStart && stmtEnd > m_selEnd) { || (m_extractionStart && stmtEnd > m_selEnd)) {
m_done = true; m_done = true;
return; return;
} }
...@@ -822,8 +822,8 @@ QList<CppQuickFixOperation::Ptr> ExtractFunction::match( ...@@ -822,8 +822,8 @@ QList<CppQuickFixOperation::Ptr> ExtractFunction::match(
const QString &name = printer.prettyName(it.key()->name()); const QString &name = printer.prettyName(it.key()->name());
if (usedBeforeExtraction && usedInsideExtraction if ((usedBeforeExtraction && usedInsideExtraction)
|| usedInsideExtraction && refFuncParams.contains(name)) { || (usedInsideExtraction && refFuncParams.contains(name))) {
QTC_ASSERT(analyser.m_knownDecls.contains(name), return noResult()); QTC_ASSERT(analyser.m_knownDecls.contains(name), return noResult());
relevantDecls.append(qMakePair(name, analyser.m_knownDecls.value(name))); relevantDecls.append(qMakePair(name, analyser.m_knownDecls.value(name)));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment