aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-03-20 13:32:02 -0600
committerTom Tromey <tromey@adacore.com>2024-06-04 10:13:17 -0600
commit57ab1952fcf921f06ac47ee4b0fa13798bf7a230 (patch)
tree00f6e1d57b3936f2e5d124faf99aee60690ff3df
parent7149dfe819b16c0238fb67f55a47e9295c20ff1b (diff)
downloadgdb-57ab1952fcf921f06ac47ee4b0fa13798bf7a230.zip
gdb-57ab1952fcf921f06ac47ee4b0fa13798bf7a230.tar.gz
gdb-57ab1952fcf921f06ac47ee4b0fa13798bf7a230.tar.bz2
Remove a couple unnecessary casts
After the previous bcache change, a couple of casts in objfiles.h are now redundant.
-rw-r--r--gdb/objfiles.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h
index dc1b8f7..88dfb33 100644
--- a/gdb/objfiles.h
+++ b/gdb/objfiles.h
@@ -228,14 +228,14 @@ struct objfile_per_bfd_storage
const char *intern (const char *str)
{
- return (const char *) string_cache.insert (str, strlen (str) + 1);
+ return string_cache.insert (str, strlen (str) + 1);
}
/* Same as the above, but for an std::string. */
const char *intern (const std::string &str)
{
- return (const char *) string_cache.insert (str.c_str (), str.size () + 1);
+ return string_cache.insert (str.c_str (), str.size () + 1);
}
/* Get the BFD this object is associated to. */