forked from qt-creator/qt-creator
Cppcheck: Replace another assertion with a condition
Missed in 3f4438e2eb.
Change-Id: Ie0ddeb7aad5dc70aec788b9df1954e884684cba1
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
f18f833584
commit
9644745b3d
@@ -134,7 +134,8 @@ void CppcheckTrigger::removeEditors(const QList<Core::IEditor *> &editors)
|
|||||||
const auto document = editor->document();
|
const auto document = editor->document();
|
||||||
QTC_ASSERT(document, return);
|
QTC_ASSERT(document, return);
|
||||||
const auto &path = document->filePath();
|
const auto &path = document->filePath();
|
||||||
QTC_ASSERT(!path.isEmpty(), return);
|
if (path.isEmpty())
|
||||||
|
return;
|
||||||
|
|
||||||
if (!m_checkedFiles.contains(path))
|
if (!m_checkedFiles.contains(path))
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user