From: Tom Tromey Date: Wed, 20 Mar 2024 19:32:02 +0000 (-0600) Subject: Remove a couple unnecessary casts X-Git-Tag: binutils-2_43~545 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=57ab1952fcf921f06ac47ee4b0fa13798bf7a230;p=thirdparty%2Fbinutils-gdb.git Remove a couple unnecessary casts After the previous bcache change, a couple of casts in objfiles.h are now redundant. --- diff --git a/gdb/objfiles.h b/gdb/objfiles.h index dc1b8f7afe2..88dfb33e45c 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. */