mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Convert some push_back to emplace_back
This commit is contained in:
parent
3c6d1b47f6
commit
075a8a6548
8 changed files with 12 additions and 12 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue