* [pushed] tracepoint: Remove unnecessary const_cast
@ 2017-10-31 19:05 Simon Marchi
0 siblings, 0 replies; only message in thread
From: Simon Marchi @ 2017-10-31 19:05 UTC (permalink / raw)
To: gdb-patches; +Cc: Simon Marchi
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.
---
gdb/ChangeLog | 4 ++++
gdb/tracepoint.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a72cc74..eec03e4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index fdc3b38..78f4c86 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -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 */
--
2.7.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-10-31 19:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-31 19:05 [pushed] tracepoint: Remove unnecessary const_cast Simon Marchi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).