Fixed formatting
This commit is contained in:
@@ -164,8 +164,6 @@ std::string get_source_text(
|
|||||||
return get_source_text_raw(printable_range, sm);
|
return get_source_text_raw(printable_range, sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
template <> id_t to_id(const std::string &full_name)
|
template <> id_t to_id(const std::string &full_name)
|
||||||
{
|
{
|
||||||
return std::hash<std::string>{}(full_name) >> 3;
|
return std::hash<std::string>{}(full_name) >> 3;
|
||||||
|
|||||||
@@ -107,10 +107,6 @@ void generator::generate_activity(const activity &a, std::ostream &ostr,
|
|||||||
m.from, m.to, m.to);
|
m.from, m.to, m.to);
|
||||||
generate_activity(m_model.sequences[m.to], ostr, visited);
|
generate_activity(m_model.sequences[m.to], ostr, visited);
|
||||||
}
|
}
|
||||||
// else {
|
|
||||||
// // clear the visited list after breaking the loop
|
|
||||||
// visited.clear();
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
LOG_DBG("Skipping activity {} --> {} - missing sequence {}", m.from,
|
LOG_DBG("Skipping activity {} --> {} - missing sequence {}", m.from,
|
||||||
@@ -195,9 +191,11 @@ void generator::generate(std::ostream &ostr) const
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
std::vector<common::model::diagram_element::id_t> visited_participants;
|
std::vector<common::model::diagram_element::id_t>
|
||||||
|
visited_participants;
|
||||||
|
|
||||||
const auto& from = m_model.get_participant<model::participant>(start_from);
|
const auto &from =
|
||||||
|
m_model.get_participant<model::participant>(start_from);
|
||||||
|
|
||||||
generate_participant(ostr, start_from);
|
generate_participant(ostr, start_from);
|
||||||
|
|
||||||
|
|||||||
@@ -76,7 +76,6 @@ public:
|
|||||||
static_cast<T *>(participants.at(id).get()));
|
static_cast<T *>(participants.at(id).get()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void add_participant(std::unique_ptr<participant> p)
|
void add_participant(std::unique_ptr<participant> p)
|
||||||
{
|
{
|
||||||
const auto participant_id = p->id();
|
const auto participant_id = p->id();
|
||||||
|
|||||||
Reference in New Issue
Block a user