aboutsummaryrefslogtreecommitdiffstats
path: root/utils/v4l2-ctl/v4l2-ctl-common.cpp
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-07-26 20:14:52 -0700
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2020-08-03 12:23:02 +0200
commit32cbf32aa54c5922c2946bc7f92a11552d340aa5 (patch)
tree33f44b8947af73b038589f9d6b8f28a24b423ef0 /utils/v4l2-ctl/v4l2-ctl-common.cpp
parent3e73d62b91c9997cef9739eb0220e2789b8e824f (diff)
use using instead of typedef
Found with modernize-use-using Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'utils/v4l2-ctl/v4l2-ctl-common.cpp')
-rw-r--r--utils/v4l2-ctl/v4l2-ctl-common.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/utils/v4l2-ctl/v4l2-ctl-common.cpp b/utils/v4l2-ctl/v4l2-ctl-common.cpp
index c8705a04..8ecfa972 100644
--- a/utils/v4l2-ctl/v4l2-ctl-common.cpp
+++ b/utils/v4l2-ctl/v4l2-ctl-common.cpp
@@ -34,22 +34,22 @@ struct ctrl_subset {
typedef std::map<unsigned, std::vector<struct v4l2_ext_control> > class2ctrls_map;
-typedef std::map<std::string, struct v4l2_query_ext_ctrl> ctrl_qmap;
+using ctrl_qmap = std::map<std::string, struct v4l2_query_ext_ctrl>;
static ctrl_qmap ctrl_str2q;
-typedef std::map<unsigned, std::string> ctrl_idmap;
+using ctrl_idmap = std::map<unsigned int, std::string>;
static ctrl_idmap ctrl_id2str;
-typedef std::map<std::string, ctrl_subset> ctrl_subset_map;
+using ctrl_subset_map = std::map<std::string, ctrl_subset>;
static ctrl_subset_map ctrl_subsets;
-typedef std::list<std::string> ctrl_get_list;
+using ctrl_get_list = std::list<std::string>;
static ctrl_get_list get_ctrls;
-typedef std::map<std::string, std::string> ctrl_set_map;
+using ctrl_set_map = std::map<std::string, std::string>;
static ctrl_set_map set_ctrls;
-typedef std::vector<std::string> dev_vec;
-typedef std::map<std::string, std::string> dev_map;
+using dev_vec = std::vector<std::string>;
+using dev_map = std::map<std::string, std::string>;
static enum v4l2_priority prio = V4L2_PRIORITY_UNSET;

Privacy Policy