From: Tom Tromey <tromey@adacore.com>
To: gdb-patches@sourceware.org
Subject: [PATCH 3/3] Remove a couple unnecessary casts
Date: Wed, 20 Mar 2024 14:24:00 -0600 [thread overview]
Message-ID: <20240320-bcache-type-v1-3-fe616105e9ae@adacore.com> (raw)
In-Reply-To: <20240320-bcache-type-v1-0-fe616105e9ae@adacore.com>
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(-)
diff --git a/gdb/objfiles.h b/gdb/objfiles.h
index 8b8b7182e87..ab655906508 100644
--- a/gdb/objfiles.h
+++ b/gdb/objfiles.h
@@ -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. */
--
2.43.0
next prev parent reply other threads:[~2024-03-20 20:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-20 20:23 [PATCH 0/3] Better type safety for bcache Tom Tromey
2024-03-20 20:23 ` [PATCH 1/3] Some constification in psymtab Tom Tromey
2024-03-25 15:00 ` Alexandra Petlanova Hajkova
2024-03-20 20:23 ` [PATCH 2/3] Make bcache more type-safe Tom Tromey
2024-03-27 14:15 ` Alexandra Petlanova Hajkova
2024-03-20 20:24 ` Tom Tromey [this message]
2024-03-27 19:50 ` [PATCH 3/3] Remove a couple unnecessary casts Alexandra Petlanova Hajkova
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240320-bcache-type-v1-3-fe616105e9ae@adacore.com \
--to=tromey@adacore.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox