Commit 1e77753f authored by Gauthier Quesnel's avatar Gauthier Quesnel
Browse files

core: fix typo

parent 282c9ba4
......@@ -6,7 +6,7 @@ UseTab: Never
IndentWidth: 4
BinPackArguments: false
BinPackParameters: false
Standard: Cpp11
Standard: c++20
AlignOperands: true
AlignTrailingComments: true
AllowShortBlocksOnASingleLine: false
......@@ -15,3 +15,9 @@ AllowShortFunctionsOnASingleLine: None
IndentCaseLabels: false
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
SpacesInSquareBrackets: false
AlwaysBreakTemplateDeclarations: true
BreakBeforeConceptDeclarations: true
IndentRequires: false
BeforeLambdaBody: false
SpacesInSquareBrackets: false
......@@ -180,7 +180,7 @@ editor::group(const ImVector<int>& nodes) noexcept
cluster, we try to detect if the corresponding model is or is not in the
same cluster. */
for (const auto &child : top.children) {
for (const auto& child : top.children) {
if (child.first.index() == 0) {
const auto child_id = std::get<model_id>(child.first);
......@@ -545,7 +545,7 @@ struct copier
auto ret = sim.dispatch(
*mdl,
[this, &sim, mdl, &mdl_id_dst]<typename Dynamics>(
Dynamics& dyn) -> status {
Dynamics& /*dyn*/) -> status {
irt_return_if_fail(sim.models.can_alloc(1),
status::dynamics_not_enough_memory);
......@@ -2124,13 +2124,12 @@ show_tooltip(editor& ed, const model& mdl, const model_id id)
mdl.tl,
mdl.tn);
auto ret = ed.sim.dispatch(
mdl, [&]<typename Dynamics>(Dynamics & dyn) {
if constexpr (is_detected_v<has_input_port_t, Dynamics>)
return make_input_tooltip(dyn, ed.tooltip);
auto ret = ed.sim.dispatch(mdl, [&]<typename Dynamics>(Dynamics& dyn) {
if constexpr (is_detected_v<has_input_port_t, Dynamics>)
return make_input_tooltip(dyn, ed.tooltip);
return status::success;
});
return status::success;
});
if (is_bad(ret))
ed.tooltip += "error\n";
......
......@@ -184,7 +184,7 @@ file_discrete_output::operator()(const irt::observer& obs,
void
file_output::operator()(const irt::observer& obs,
const irt::dynamics_type type,
const irt::time tl,
const irt::time /*tl*/,
const irt::time t,
const irt::observer::status s)
{
......
......@@ -828,4 +828,4 @@ sources::show_menu(const char* title, external_source& src)
}
}
} // namespace irt
\ No newline at end of file
} // namespace irt
......@@ -2889,6 +2889,19 @@ struct port
{
shared_flat_list<node> connections;
flat_list<message> messages;
// message* output = nullptr;
// port& operator=(const double v) noexcept
// {
// output[0] = v;
// return *this;
// }
// port& operator=(const std::initializer_list<double>& v) noexcept
// {
// std::copy_n(std::data(v), std::size(v), &output->real[0]);
// return *this;
// }
};
struct none
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment