Skip to content

Commit e21d8ce

Browse files
committed
cstrans-df-run: use std::move() suggested by Coverity
Related: csutils#190 Closes: csutils#191
1 parent 74db0ab commit e21d8ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cstrans-df-run.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ void DockerFileTransformer::transformRunLine(std::string *pRunLine)
195195
}
196196

197197
// return the result of a successful transformation
198-
*pRunLine = newRunLine;
198+
*pRunLine = std::move(newRunLine);
199199
}
200200

201201
bool DockerFileTransformer::transform(std::istream &in, std::ostream &out)

0 commit comments

Comments
 (0)