Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
{% set any_active = measurements | selectattr('active') | list | length > 0 %}
{% if any_active %}
// release the old filter ( and output data )
{% for m in measurements -%}
{% if m.active -%}
this->m_pfGet{{ m.name }} = nullptr;
{%- for m in measurements -%}
{%- if m.active %}
this->m_pfGet{{ m.name }} = nullptr;
{% endif %}
{%- endfor %}

Expand Down
5 changes: 3 additions & 2 deletions ExpandTemplateGenerator/templates/ToStringBody.cxx.jinja
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
std::ostringstream out;
out << "itk::simple::{{ name }}\\n";
out << "itk::simple::{{ name }}" << std::endl;
{% for member in members %}
{%- if not member.no_print %}
out << " {{ member.name }}: ";
Expand Down Expand Up @@ -33,7 +33,8 @@
}
out << std::endl;
{%- else %}
out << " {{ measurement.name }}: " << this->m_{{ measurement.name }} << std::endl;
this->ToStringHelper(out, this->m_{{ measurement.name }});
out << std::endl;
{%- endif %}
{%- endif %}
{%- endfor %}
Expand Down