mirror of
https://github.com/ceph/ceph
synced 2025-01-19 09:32:00 +00:00
options: use move instead of copy in build_options()
Signed-off-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
parent
2237624846
commit
9a97f5405f
@ -6049,10 +6049,9 @@ static std::vector<Option> build_options()
|
||||
std::vector<Option> result = get_global_options();
|
||||
|
||||
auto ingest = [&result](std::vector<Option>&& options, const char* svc) {
|
||||
for (const auto &o_in : options) {
|
||||
Option o(o_in);
|
||||
for (auto &o : options) {
|
||||
o.add_service(svc);
|
||||
result.push_back(o);
|
||||
result.push_back(std::move(o));
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user