Commit 4335f118 authored by Robert Loehning's avatar Robert Loehning

Core: Replace guards by assert

Change-Id: I116d7fece2a96dbfc9adad0905bc08d8ea4ca40e
Reviewed-by: Eike Ziller's avatarEike Ziller <eike.ziller@qt.io>
parent 9652e85b
......@@ -264,12 +264,12 @@ void FindToolWindow::setCurrentFilter(int index)
void FindToolWindow::acceptAndGetParameters(QString *term, IFindFilter **filter)
{
if (filter)
*filter = 0;
QTC_ASSERT(filter, return);
*filter = 0;
Find::updateFindCompletion(m_ui.searchTerm->text());
int index = m_ui.filterList->currentIndex();
QString searchTerm = m_ui.searchTerm->text();
if (filter && index >= 0)
if (index >= 0)
*filter = m_filters.at(index);
if (term)
*term = searchTerm;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment