diff --git a/source/RobotAPI/libraries/aron/core/codegenerator/codeWriter/cpp/serializer/toplevel/IntEnumClass.cpp b/source/RobotAPI/libraries/aron/core/codegenerator/codeWriter/cpp/serializer/toplevel/IntEnumClass.cpp index 771063a4a0ced90ceaf58b3088bf9a7c30b2ea46..6998d81b564e532f5f174c8c07db8b4b79b1f703 100644 --- a/source/RobotAPI/libraries/aron/core/codegenerator/codeWriter/cpp/serializer/toplevel/IntEnumClass.cpp +++ b/source/RobotAPI/libraries/aron/core/codegenerator/codeWriter/cpp/serializer/toplevel/IntEnumClass.cpp @@ -170,7 +170,7 @@ namespace armarx::aron::cppserializer::serializer CppMethodPtr m = CppMethodPtr(new CppMethod(getFullCppTypename() + "& operator=(const " + getFullCppTypename() + "& c)", doc.str())); CppBlockPtr b = std::make_shared<CppBlock>(); b->addLine("value = c.value;"); - b->addLine("return *this"); + b->addLine("return *this;"); m->setBlock(b); return m; } @@ -184,7 +184,7 @@ namespace armarx::aron::cppserializer::serializer CppMethodPtr m = CppMethodPtr(new CppMethod(getFullCppTypename() + "& operator=(" + std::string(IMPL_ENUM) + " v)", doc.str())); CppBlockPtr b = std::make_shared<CppBlock>(); b->addLine("value = v;"); - b->addLine("return *this"); + b->addLine("return *this;"); m->setBlock(b); return m; } @@ -205,7 +205,7 @@ namespace armarx::aron::cppserializer::serializer CppBlockPtr b3 = std::make_shared<CppBlock>(); b3->addLine("value = it->second;"); b->addBlock(b3); - b->addLine("return *this"); + b->addLine("return *this;"); m->setBlock(b); return m; }