@@ -301,7 +301,7 @@ int check_0(const void *p, int len)
static std::map<std::string, std::string> stream_from_map;
static std::map<std::string, bool> stream_hdr_map;
-std::string stream_from(std::string pixelformat, bool &use_hdr)
+std::string stream_from(const std::string& pixelformat, bool &use_hdr)
{
if (stream_from_map.find(pixelformat) == stream_from_map.end()) {
if (pixelformat.empty())
@@ -263,7 +263,7 @@ int check_0(const void *p, int len);
int restoreFormat(struct node *node);
void testNode(struct node &node, struct node &node_m2m_cap, struct node &expbuf_node, media_type type,
unsigned frame_count, unsigned all_fmt_frame_count);
-std::string stream_from(std::string pixelformat, bool &use_hdr);
+std::string stream_from(const std::string& pixelformat, bool &use_hdr);
// Media Controller ioctl tests
int testMediaDeviceInfo(struct node *node);
Found with performance* Signed-off-by: Rosen Penev <rosenp@gmail.com> --- utils/v4l2-compliance/v4l2-compliance.cpp | 2 +- utils/v4l2-compliance/v4l2-compliance.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)