Skip to content
Snippets Groups Projects
Commit 2d4502e6 authored by Christoph Pohl's avatar Christoph Pohl
Browse files

Fix wrong generation of enum reset methods in case of it being optional

parent 9ea87b5a
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ namespace armarx::aron::codegenerator::cpp::generator
{
CppBlockPtr block_if_data = std::make_shared<CppBlock>();
block_if_data->addLine(accessor + nextEl() + "resetSoft();");
return block_if_data;
return this->resolveMaybeResetSoftBlock(block_if_data, accessor);
}
CppBlockPtr IntEnum::getResetHardBlock(const std::string& accessor) const
......@@ -57,7 +57,7 @@ namespace armarx::aron::codegenerator::cpp::generator
{
b->addLine(accessor + nextEl() + "resetHard();");
}
return b;
return this->resolveMaybeResetHardBlock(b, accessor);
}
CppBlockPtr IntEnum::getWriteTypeBlock(const std::string& typeAccessor, const std::string& cppAccessor, const Path& p, std::string& variantAccessor) const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment