forked from qt-creator/qt-creator
Fix warnings in release mode (unused variables)
qmljsimportdependencies.cpp:937:18: warning: variable ‘found’ set but not used [-Wunused-but-set-variable] findtoolbar.cpp:665:18: warning: unused variable ‘w’ [-Wunused-variable] Change-Id: I75930fa6f5a7cbb91d9c39e6808f8c3ce913327e Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -938,7 +938,7 @@ void ImportDependencies::checkConsistency() const
|
|||||||
foreach (const Export &e, m_coreImports.value(s).possibleExports)
|
foreach (const Export &e, m_coreImports.value(s).possibleExports)
|
||||||
if (e.exportName == j.key())
|
if (e.exportName == j.key())
|
||||||
found = true;
|
found = true;
|
||||||
Q_ASSERT(found);
|
Q_ASSERT(found); Q_UNUSED(found);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
QMapIterator<QString,CoreImport> i(m_coreImports);
|
QMapIterator<QString,CoreImport> i(m_coreImports);
|
||||||
|
|||||||
@@ -662,7 +662,6 @@ void FindToolBar::openFindToolBar(bool focus)
|
|||||||
// find shortcut
|
// find shortcut
|
||||||
if (!focus || !toolBarHasFocus()) {
|
if (!focus || !toolBarHasFocus()) {
|
||||||
QString text = m_currentDocumentFind->currentFindString();
|
QString text = m_currentDocumentFind->currentFindString();
|
||||||
QWidget *w = qApp->focusWidget();
|
|
||||||
if (!text.isEmpty())
|
if (!text.isEmpty())
|
||||||
setFindText(text);
|
setFindText(text);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user