1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

Remove redundant superclass instantiation in loopback_internal.cpp

Signed-off-by: pipeacosta <pipeacosta@gmail.com>
This commit is contained in:
pipeacosta 2024-02-17 12:23:20 +01:00
parent 73ff061ca8
commit c70cc06df1

View file

@ -23,13 +23,12 @@ InternalLoopbackNode::InternalLoopbackNode(Node *src, unsigned id, unsigned ql)
: queuelen(ql), source(src) {
auto name = fmt::format("{}.lo{}", src->getNameShort(), id);
uuid_t uuid;
int ret =
uuid::generateFromString(uuid, fmt::format("lo{}", id), src->getUuid());
if (ret)
throw RuntimeError("Failed to initialize UUID");
Node(uuid, name);
name_short = name;
factory = &nf;
name_long = fmt::format(CLR_RED("{}") "(" CLR_YEL("{}") ")", name_short,