mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-20 15:06:33 -05: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
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue