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

@ -58,7 +58,7 @@ _create(const Branches::Ptr &branches_,
if(info.spaceavail < branch.minfreespace())
error_and_continue(error,ENOSPC);
paths_.push_back(&branch);
paths_.emplace_back(&branch);
return 0;
}
@ -89,7 +89,7 @@ _action(const Branches::Ptr &branches_,
if(readonly)
error_and_continue(error,EROFS);
paths_.push_back(&branch);
paths_.emplace_back(&branch);
return 0;
}
@ -108,7 +108,7 @@ _search(const Branches::Ptr &branches_,
if(!fs::exists(branch.path,fusepath_))
continue;
paths_.push_back(&branch);
paths_.emplace_back(&branch);
return 0;
}