Skip to content

Commit 57f2659

Browse files
nehebkjellahl
authored andcommitted
clang-tidy: add missing move
avoids copying Signed-off-by: Rosen Penev <rosenp@gmail.com>
1 parent 44ae82b commit 57f2659

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libxml++/exceptions/wrapped_exception.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace xmlpp
2323
#ifdef LIBXMLXX_HAVE_EXCEPTION_PTR
2424

2525
wrapped_exception::wrapped_exception(std::exception_ptr exception_ptr)
26-
: exception("Wrapped exception"), exception_ptr_(exception_ptr)
26+
: exception("Wrapped exception"), exception_ptr_(std::move(exception_ptr))
2727
{
2828
}
2929

0 commit comments

Comments
 (0)