Skip to content
Snippets Groups Projects
Commit 9e78cdb8 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

assert nonnull before using pointer

parent 8d31afc6
No related branches found
No related tags found
1 merge request!451various little improvements as suggested by clang-tidy
......@@ -216,6 +216,7 @@ QString JobModel::generateJobName()
void JobModel::restoreItem(SessionItem* item)
{
ASSERT(item);
if (ParameterItem* parameter = dynamic_cast<ParameterItem*>(item))
parameter->restoreFromBackup();
......
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