diff --git a/src/tiffvisitor.cpp b/src/tiffvisitor.cpp index 502c40d0..96711c23 100644 --- a/src/tiffvisitor.cpp +++ b/src/tiffvisitor.cpp @@ -52,7 +52,6 @@ EXIV2_RCSID("@(#) $Id$") #include #include #include -#include // ***************************************************************************** // class member definitions @@ -375,10 +374,7 @@ namespace Exiv2 { void TiffDecoder::setExifTag(const ExifKey& key, const Value* pValue, Prio prio) { - typedef std::set PriorityKeys; - static PriorityKeys priorityKeys; - - bool isRegPrioTag = (priorityKeys.find(key.key()) != priorityKeys.end()); + bool isRegPrioTag = (priorityKeys_.find(key.key()) != priorityKeys_.end()); switch (prio) { case pvNormal: @@ -388,7 +384,7 @@ namespace Exiv2 { case pvHigh: // Register the key as a high prio tag, erase low prio tags, add this if (!isRegPrioTag) { - priorityKeys.insert(key.key()); + priorityKeys_.insert(key.key()); ExifData::iterator pos = exifData_.findKey(key); while (pos != exifData_.end()) { exifData_.erase(pos); diff --git a/src/tiffvisitor_int.hpp b/src/tiffvisitor_int.hpp index 20ba36c4..e256fea6 100644 --- a/src/tiffvisitor_int.hpp +++ b/src/tiffvisitor_int.hpp @@ -42,6 +42,7 @@ #include #include #include +#include // ***************************************************************************** // namespace extensions @@ -307,6 +308,11 @@ namespace Exiv2 { GroupType groupType_; //!< NewSubfileType for each group bool decodedIptc_; //!< Indicates if IPTC has been decoded yet + + //! Type used as the container for "priority keys" + typedef std::set PriorityKeys; + PriorityKeys priorityKeys_; //!< Priority keys + }; // class TiffDecoder /*!