libexpr: Avoid an unnecessary string copy in prim_derivationStrict
This commit is contained in:
parent
66eeff3345
commit
37264ed0ad
1 changed files with 1 additions and 1 deletions
|
@ -553,7 +553,7 @@ static void prim_derivationStrict(EvalState & state, const Pos & pos, Value * *
|
||||||
|
|
||||||
for (auto & i : args[0]->attrs->lexicographicOrder()) {
|
for (auto & i : args[0]->attrs->lexicographicOrder()) {
|
||||||
if (i->name == state.sIgnoreNulls) continue;
|
if (i->name == state.sIgnoreNulls) continue;
|
||||||
string key = i->name;
|
const string & key = i->name;
|
||||||
vomit("processing attribute '%1%'", key);
|
vomit("processing attribute '%1%'", key);
|
||||||
|
|
||||||
auto handleHashMode = [&](const std::string & s) {
|
auto handleHashMode = [&](const std::string & s) {
|
||||||
|
|
Loading…
Reference in a new issue