From 2f5404b3581d125a96f14d92c4a7985e8156d1d6 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 11 Aug 2017 10:14:16 -0600 Subject: Use std::move in a few places This patch adds std::move to few spots where it seems to be missing. Regression tested by the buildbot. ChangeLog 2017-08-14 Tom Tromey * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move. * break-catch-syscall.c (create_syscall_event_catchpoint): Use std::move. * break-catch-sig.c (create_signal_catchpoint): Use std::move. --- gdb/break-catch-sig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/break-catch-sig.c') diff --git a/gdb/break-catch-sig.c b/gdb/break-catch-sig.c index c8529de..98888c9 100644 --- a/gdb/break-catch-sig.c +++ b/gdb/break-catch-sig.c @@ -322,7 +322,7 @@ create_signal_catchpoint (int tempflag, std::vector &&filter, c = new signal_catchpoint (); init_catchpoint (c, gdbarch, tempflag, NULL, &signal_catchpoint_ops); - c->signals_to_be_caught = filter; + c->signals_to_be_caught = std::move (filter); c->catch_all = catch_all; install_breakpoint (0, c, 1); -- cgit v1.1