cppcheck clean rtexif/rtexif.h

This commit is contained in:
Ingo Weyrich 2021-05-22 12:43:52 +02:00
parent ce3c5d4cf1
commit a749a1abb1
2 changed files with 6 additions and 6 deletions

View File

@ -139,7 +139,7 @@ TagDirectory* TagDirectory::getRoot()
}
}
const TagAttrib* TagDirectory::getAttrib (int id)
const TagAttrib* TagDirectory::getAttrib (int id) const
{
if (attribs)

View File

@ -145,12 +145,12 @@ public:
{
return tags.size ();
}
const TagAttrib* getAttrib (int id);
const TagAttrib* getAttrib (int id) const;
// Find a Tag by scanning the whole tag tree and stopping at the first occurrence
const TagAttrib* getAttrib (const char* name);
// Try to get the Tag at a given location. 'name' is a path relative to this directory (e.g. "LensInfo/FocalLength")
const TagAttrib* getAttribP (const char* name);
const TagAttrib* getAttribTable()
const TagAttrib* getAttribTable() const
{
return attribs;
}
@ -321,7 +321,7 @@ public:
Tag* clone (TagDirectory* parent) const;
// to control if the tag shall be written
bool getKeep ()
bool getKeep () const
{
return keep;
}
@ -331,7 +331,7 @@ public:
}
// get subdirectory (there can be several, the last is NULL)
bool isDirectory ()
bool isDirectory () const
{
return directory != nullptr;
}
@ -340,7 +340,7 @@ public:
return (directory) ? directory[i] : nullptr;
}
MNKind getMakerNoteFormat ()
MNKind getMakerNoteFormat () const
{
return makerNoteKind;
}