[kernel] Remove unnecessary string copy

This commit is contained in:
Joel Linn
2022-02-24 22:38:55 +01:00
committed by Rick Gibbed
parent b625ef0a38
commit 38d589d1e0
5 changed files with 14 additions and 15 deletions

View File

@@ -24,8 +24,8 @@ XSymbolicLink::~XSymbolicLink() {}
void XSymbolicLink::Initialize(const std::string_view path,
const std::string_view target) {
path_ = path;
target_ = target;
path_ = std::string(path);
target_ = std::string(target);
// TODO(gibbed): kernel_state_->RegisterSymbolicLink(this);
}