Merge pull request #9763 from L-as/avoid-unnecessary-copy

Avoid unnecessary copy of goal log
This commit is contained in:
Robert Hensing 2024-01-15 08:32:03 +01:00 committed by GitHub
commit 268c49264a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -449,7 +449,7 @@ void Worker::waitForInput()
} else {
printMsg(lvlVomit, "%1%: read %2% bytes",
goal->getName(), rd);
std::string data((char *) buffer.data(), rd);
std::string_view data((char *) buffer.data(), rd);
j->lastOutput = after;
goal->handleChildOutput(k, data);
}