From e21d8ce96282f9cbc96bf8625319e9fdf546be85 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Wed, 3 Jul 2024 16:18:10 +0200 Subject: [PATCH] cstrans-df-run: use std::move() suggested by Coverity Related: https://github.com/csutils/csdiff/pull/190 Closes: https://github.com/csutils/csdiff/pull/191 --- src/cstrans-df-run.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cstrans-df-run.cc b/src/cstrans-df-run.cc index 4142e457..66b7c8d4 100644 --- a/src/cstrans-df-run.cc +++ b/src/cstrans-df-run.cc @@ -195,7 +195,7 @@ void DockerFileTransformer::transformRunLine(std::string *pRunLine) } // return the result of a successful transformation - *pRunLine = newRunLine; + *pRunLine = std::move(newRunLine); } bool DockerFileTransformer::transform(std::istream &in, std::ostream &out)