Cleanup: use BLI_assert_unreachable in some places

This commit is contained in:
2021-03-23 16:49:47 +01:00
parent 433fb9326e
commit 9a2e623372
11 changed files with 18 additions and 18 deletions

View File

@@ -141,7 +141,7 @@ InputSocketRef &NodeTreeRef::find_input_socket(Map<bNode *, NodeRef *> &node_map
return *socket;
}
}
BLI_assert(false);
BLI_assert_unreachable();
return *node->inputs_[0];
}
@@ -155,7 +155,7 @@ OutputSocketRef &NodeTreeRef::find_output_socket(Map<bNode *, NodeRef *> &node_m
return *socket;
}
}
BLI_assert(false);
BLI_assert_unreachable();
return *node->outputs_[0];
}

View File

@@ -69,7 +69,7 @@ void socket_expand_in_mf_network(SocketMFNetworkBuilder &builder)
builder.set_constant_value(type, buffer);
}
else {
BLI_assert(false);
BLI_assert_unreachable();
}
}