aboutsummaryrefslogtreecommitdiffstats
path: root/utils/v4l2-compliance/v4l2-compliance.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/v4l2-compliance/v4l2-compliance.cpp')
-rw-r--r--utils/v4l2-compliance/v4l2-compliance.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/v4l2-compliance/v4l2-compliance.cpp b/utils/v4l2-compliance/v4l2-compliance.cpp
index 5f9996fb..fa941a14 100644
--- a/utils/v4l2-compliance/v4l2-compliance.cpp
+++ b/utils/v4l2-compliance/v4l2-compliance.cpp
@@ -900,11 +900,11 @@ static std::string make_devname(const char *device, const char *devname,
return device;
}
- media_v2_entity *ents = new media_v2_entity[topology.num_entities];
+ auto ents = new media_v2_entity[topology.num_entities];
topology.ptr_entities = (uintptr_t)ents;
- media_v2_link *links = new media_v2_link[topology.num_links];
+ auto links = new media_v2_link[topology.num_links];
topology.ptr_links = (uintptr_t)links;
- media_v2_interface *ifaces = new media_v2_interface[topology.num_interfaces];
+ auto ifaces = new media_v2_interface[topology.num_interfaces];
topology.ptr_interfaces = (uintptr_t)ifaces;
unsigned i, ent_id, iface_id = 0;

Privacy Policy