linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rosen Penev <rosenp@gmail.com>
To: linux-media@vger.kernel.org
Subject: [PATCH 6/8] [clang-tidy] convert files to reference
Date: Sun, 26 Jul 2020 20:14:54 -0700	[thread overview]
Message-ID: <20200727031456.232955-7-rosenp@gmail.com> (raw)
In-Reply-To: <20200727031456.232955-1-rosenp@gmail.com>

Found with performance-unnecessary-value-param

Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 utils/rds-ctl/rds-ctl.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/rds-ctl/rds-ctl.cpp b/utils/rds-ctl/rds-ctl.cpp
index f58c1fa2..cabfa538 100644
--- a/utils/rds-ctl/rds-ctl.cpp
+++ b/utils/rds-ctl/rds-ctl.cpp
@@ -299,7 +299,7 @@ static bool is_radio_dev(const char *name)
 	return !memcmp(name, "radio", 5);
 }
 
-static void print_devices(dev_vec files)
+static void print_devices(const dev_vec& files)
 {
 	dev_map cards;
 	int fd = -1;
-- 
2.26.2


  parent reply	other threads:[~2020-07-27  3:15 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-27  3:14 [PATCH 0/8] v4l-utils: C++11 modernization Rosen Penev
2020-07-27  3:14 ` [PATCH 1/8] fix GCC enum warning Rosen Penev
2020-08-03 10:13   ` Hans Verkuil
2020-07-27  3:14 ` [PATCH 2/8] [clang-tidy] convert to range based loops Rosen Penev
2020-07-27  3:14 ` [PATCH 3/8] [clang-tidy] use auto Rosen Penev
2020-07-27  3:14 ` [PATCH 4/8] [clang-tidy] use using instead of typedef Rosen Penev
2020-07-27  3:14 ` [PATCH 5/8] [clang-tidy] use emplace_back Rosen Penev
2020-07-27  3:14 ` Rosen Penev [this message]
2020-07-27  3:14 ` [PATCH 7/8] [clang-tidy] fix mismatching declarations Rosen Penev
2020-07-27  6:58   ` Mauro Carvalho Chehab
2020-07-27  3:14 ` [PATCH 8/8] [clang-tidy] use explicit for single argument constructors Rosen Penev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200727031456.232955-7-rosenp@gmail.com \
    --to=rosenp@gmail.com \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).