[3/3] Remove a couple unnecessary casts
Checks
Context |
Check |
Description |
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gdb_build--master-arm |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gdb_check--master-arm |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 |
success
|
Testing passed
|
Commit Message
After the previous bcache change, a couple of casts in objfiles.h are
now redundant.
---
gdb/objfiles.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
On Wed, Mar 20, 2024 at 9:25 PM Tom Tromey <tromey@adacore.com> wrote:
> After the previous bcache change, a couple of casts in objfiles.h are
> now redundant.
> ---
> gdb/objfiles.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> It's nice to get rid of redundant things. Causes no regressions as
> expected.
>
@@ -234,14 +234,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. */