]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove a couple unnecessary casts
authorTom Tromey <tromey@adacore.com>
Wed, 20 Mar 2024 19:32:02 +0000 (13:32 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 4 Jun 2024 16:13:17 +0000 (10:13 -0600)
After the previous bcache change, a couple of casts in objfiles.h are
now redundant.

gdb/objfiles.h

index dc1b8f7afe2e822e2a3c68aded38e1938825d62f..88dfb33e45c95c162db2d634d408d8b5918955e6 100644 (file)
@@ -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.  */