From a749a1abb1bfb968429b2f0bcb4badb8515d34eb Mon Sep 17 00:00:00 2001 From: Ingo Weyrich Date: Sat, 22 May 2021 12:43:52 +0200 Subject: [PATCH] cppcheck clean rtexif/rtexif.h --- rtexif/rtexif.cc | 2 +- rtexif/rtexif.h | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/rtexif/rtexif.cc b/rtexif/rtexif.cc index b3d31b950..a7125fb9a 100644 --- a/rtexif/rtexif.cc +++ b/rtexif/rtexif.cc @@ -139,7 +139,7 @@ TagDirectory* TagDirectory::getRoot() } } -const TagAttrib* TagDirectory::getAttrib (int id) +const TagAttrib* TagDirectory::getAttrib (int id) const { if (attribs) diff --git a/rtexif/rtexif.h b/rtexif/rtexif.h index dd89b70ce..7b2f8ad23 100644 --- a/rtexif/rtexif.h +++ b/rtexif/rtexif.h @@ -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; }