Commit b1f97118 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Cleanup

parent 8f6956e6
......@@ -1707,14 +1707,8 @@ void SemanticHighlighter::run()
forever {
m_mutex.lock();
forever {
if (m_done)
break;
else if (! m_source.fileName.isEmpty())
break;
while (! (m_done || ! m_source.fileName.isEmpty()))
m_condition.wait(&m_mutex);
}
const bool done = m_done;
const Source source = m_source;
......
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