mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
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 <tom@tromey.com> * 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.
This commit is contained in:
@@ -322,7 +322,7 @@ create_signal_catchpoint (int tempflag, std::vector<gdb_signal> &&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);
|
||||
|
||||
Reference in New Issue
Block a user