mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 18:44:20 +08:00
tracepoint: Remove unnecessary const_cast
We are passing a const char * to a const char * parameter, the const_cast is not necessary. gdb/ChangeLog: * tracepoint.c (tfind_command): Remove const_cast.
This commit is contained in:
parent
0bb6961f18
commit
09b847f3a8
@ -1,3 +1,7 @@
|
||||
2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
|
||||
|
||||
* tracepoint.c (tfind_command): Remove const_cast.
|
||||
|
||||
2017-10-30 Mike Gulick <mgulick@mathworks.com>
|
||||
|
||||
* Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
|
||||
|
@ -2319,7 +2319,7 @@ tfind_command_1 (const char *args, int from_tty)
|
||||
static void
|
||||
tfind_command (const char *args, int from_tty)
|
||||
{
|
||||
tfind_command_1 (const_cast<char *> (args), from_tty);
|
||||
tfind_command_1 (args, from_tty);
|
||||
}
|
||||
|
||||
/* tfind end */
|
||||
|
Loading…
Reference in New Issue
Block a user