Convert some push_back to emplace_back

This commit is contained in:
Antonio SJ Musumeci 2026-03-01 14:39:38 -06:00 • committed by trapexit
parent 3c6d1b47f6
commit 075a8a6548
8 changed files with 12 additions and 12 deletions

View file

@ -92,7 +92,7 @@ _action(const Branches::Ptr &branches_,
if(obranch == nullptr)
return -error;
paths_.push_back(obranch);
paths_.emplace_back(obranch);
return 0;
}
@ -153,7 +153,7 @@ _search(const Branches::Ptr &branches_,
if(obranch == nullptr)
return -ENOENT;
paths_.push_back(obranch);
paths_.emplace_back(obranch);
return 0;
}
@ -216,7 +216,7 @@ _create(const Branches::Ptr &branches_,
if(obranch == nullptr)
return -error;
paths_.push_back(obranch);
paths_.emplace_back(obranch);
return 0;
}