mirror of
https://github.com/taglib/taglib.git
synced 2026-04-12 17:09:50 -04:00
Inspection: Parameter can be made pointer to const
This commit is contained in:
@ -437,7 +437,7 @@ PropertyMap UserTextIdentificationFrame::asProperties() const
|
||||
}
|
||||
|
||||
UserTextIdentificationFrame *UserTextIdentificationFrame::find(
|
||||
ID3v2::Tag *tag, const String &description) // static
|
||||
const ID3v2::Tag *tag, const String &description) // static
|
||||
{
|
||||
for(const auto &frame : std::as_const(tag->frameList("TXXX"))) {
|
||||
auto f = dynamic_cast<UserTextIdentificationFrame *>(frame);
|
||||
|
||||
@ -300,7 +300,7 @@ namespace TagLib {
|
||||
* Searches for the user defined text frame with the description \a description
|
||||
* in \a tag. This returns null if no matching frames were found.
|
||||
*/
|
||||
static UserTextIdentificationFrame *find(Tag *tag, const String &description);
|
||||
static UserTextIdentificationFrame *find(const Tag *tag, const String &description);
|
||||
|
||||
/*!
|
||||
* Returns an appropriate TXXX frame description for the given free-form tag key.
|
||||
|
||||
@ -173,7 +173,7 @@ PropertyMap UserUrlLinkFrame::asProperties() const
|
||||
return map;
|
||||
}
|
||||
|
||||
UserUrlLinkFrame *UserUrlLinkFrame::find(ID3v2::Tag *tag, const String &description) // static
|
||||
UserUrlLinkFrame *UserUrlLinkFrame::find(const ID3v2::Tag *tag, const String &description) // static
|
||||
{
|
||||
for(const auto &frame : std::as_const(tag->frameList("WXXX"))) {
|
||||
auto f = dynamic_cast<UserUrlLinkFrame *>(frame);
|
||||
|
||||
@ -170,7 +170,7 @@ namespace TagLib {
|
||||
* Searches for the user defined url frame with the description \a description
|
||||
* in \a tag. This returns null if no matching frames were found.
|
||||
*/
|
||||
static UserUrlLinkFrame *find(Tag *tag, const String &description);
|
||||
static UserUrlLinkFrame *find(const Tag *tag, const String &description);
|
||||
|
||||
protected:
|
||||
void parseFields(const ByteVector &data) override;
|
||||
|
||||
Reference in New Issue
Block a user