Refactored id_t to types.cpp
This commit is contained in:
@@ -747,8 +747,8 @@ void generator::generate_diagram(nlohmann::json &parent) const
|
||||
if (to_activity_id == 0)
|
||||
continue;
|
||||
|
||||
auto message_chains_unique =
|
||||
model().get_all_from_to_message_chains(common::id_t{}, *to_activity_id);
|
||||
auto message_chains_unique = model().get_all_from_to_message_chains(
|
||||
common::id_t{}, *to_activity_id);
|
||||
|
||||
nlohmann::json sequence;
|
||||
sequence["to"]["location"] = to_location.location;
|
||||
|
||||
@@ -650,7 +650,8 @@ void generator::generate_diagram(std::ostream &ostr) const
|
||||
ostr << indent(1) << from_alias << " "
|
||||
<< common::generators::mermaid::to_mermaid(
|
||||
message_t::kReturn)
|
||||
<< " *" << " : ";
|
||||
<< " *"
|
||||
<< " : ";
|
||||
|
||||
if (config().generate_return_types())
|
||||
ostr << from.value().return_type();
|
||||
|
||||
@@ -552,8 +552,8 @@ void generator::generate_diagram(std::ostream &ostr) const
|
||||
if (!to_activity_id)
|
||||
continue;
|
||||
|
||||
auto message_chains_unique =
|
||||
model().get_all_from_to_message_chains(common::id_t{}, *to_activity_id);
|
||||
auto message_chains_unique = model().get_all_from_to_message_chains(
|
||||
common::id_t{}, *to_activity_id);
|
||||
|
||||
bool first_separator_skipped{false};
|
||||
for (const auto &mc : message_chains_unique) {
|
||||
|
||||
@@ -387,7 +387,8 @@ std::vector<message_chain_t> diagram::get_all_from_to_message_chains(
|
||||
message_chains_unique.end(), mc) != message_chains_unique.end())
|
||||
continue;
|
||||
|
||||
if (from_activity.value() == 0 || (mc.front().from() == from_activity)) {
|
||||
if (from_activity.value() == 0 ||
|
||||
(mc.front().from() == from_activity)) {
|
||||
message_chains_unique.push_back(mc);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user