diff mbox series

[5/8,clang-tidy] use emplace_back

Message ID 20200727031456.232955-6-rosenp@gmail.com (mailing list archive)
State New, archived
Headers show
Series v4l-utils: C++11 modernization | expand

Commit Message

Rosen Penev July 27, 2020, 3:14 a.m. UTC
Found with modernize-use-emplace

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

Patch

diff --git a/utils/v4l2-dbg/v4l2-dbg.cpp b/utils/v4l2-dbg/v4l2-dbg.cpp
index 8b23752a..c4a7b942 100644
--- a/utils/v4l2-dbg/v4l2-dbg.cpp
+++ b/utils/v4l2-dbg/v4l2-dbg.cpp
@@ -499,7 +499,7 @@  int main(int argc, char **argv)
 			break;
 
 		case OptGetRegister:
-			get_regs.push_back(optarg);
+			get_regs.emplace_back(optarg);
 			break;
 
 		case OptSetStride: