From 557231e07217849bd7545bad398266c1e9d7383f Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 25 Nov 2016 01:45:17 +0800 Subject: [PATCH] ceph_argparse: simplify argv_to_vec() using vector::insert() Signed-off-by: Kefu Chai --- src/common/ceph_argparse.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common/ceph_argparse.cc b/src/common/ceph_argparse.cc index df02434c4fbcc..5a1adace6d016 100644 --- a/src/common/ceph_argparse.cc +++ b/src/common/ceph_argparse.cc @@ -134,8 +134,7 @@ void env_to_vec(std::vector& args, const char *name) void argv_to_vec(int argc, const char **argv, std::vector& args) { - for (int i=1; i& args, -- 2.39.5