mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-03 21:34:46 +08: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:
@ -382,7 +382,7 @@ handle_gnu_v3_exceptions (int tempflag, std::string &&except_rx,
|
||||
the right thing. */
|
||||
cp->type = bp_breakpoint;
|
||||
cp->kind = ex_event;
|
||||
cp->exception_rx = except_rx;
|
||||
cp->exception_rx = std::move (except_rx);
|
||||
cp->pattern = std::move (pattern);
|
||||
|
||||
re_set_exception_catchpoint (cp.get ());
|
||||
|
Reference in New Issue
Block a user