We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c4dcdf commit 16d0df0Copy full SHA for 16d0df0
src/anchored_set_variable.cc
@@ -111,9 +111,7 @@ std::unique_ptr<std::string> AnchoredSetVariable::resolveFirst(
111
const std::string &key) {
112
113
if (auto search = this->find(key); search != this->end()) {
114
- auto b = std::make_unique<std::string>();
115
- b->assign(search->second->getValue());
116
- return b;
+ return std::make_unique<std::string>(search->second->getValue());
117
}
118
119
return nullptr;
0 commit comments