From 9c507b9d201c8cd75f8f9cd7289c2eef66ca679b Mon Sep 17 00:00:00 2001 From: tbeu Date: Fri, 3 Nov 2017 20:43:49 +0100 Subject: [PATCH] Fix function declaration V762 It is possible a virtual function was overridden incorrectly. See third argument of function 'printStructure' in derived class 'TiffImage' and base class 'Image'. tiffimage.hpp 93 --- include/exiv2/tiffimage.hpp | 2 +- src/tiffimage.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/exiv2/tiffimage.hpp b/include/exiv2/tiffimage.hpp index 9fecaa3f..c610865b 100644 --- a/include/exiv2/tiffimage.hpp +++ b/include/exiv2/tiffimage.hpp @@ -89,7 +89,7 @@ namespace Exiv2 { not valid (does not look like data of the specific image type). @warning This function is not thread safe and intended for exiv2 -p{S|R} as a file debugging aid */ - virtual void printStructure(std::ostream& out, PrintStructureOption option,int depth=-1); + virtual void printStructure(std::ostream& out, PrintStructureOption option,int depth=0); /*! @brief Not supported. TIFF format does not contain a comment. diff --git a/src/tiffimage.cpp b/src/tiffimage.cpp index 9af4bbe9..c256b904 100644 --- a/src/tiffimage.cpp +++ b/src/tiffimage.cpp @@ -184,7 +184,7 @@ namespace Exiv2 { // recursively print the structure to /dev/null to ensure all metadata is in memory // must be recursive to handle NEFs which stores the raw image in a subIFDs std::ofstream devnull; - printStructure(devnull,kpsRecursive,0); + printStructure(devnull,kpsRecursive); ByteOrder bo = TiffParser::decode(exifData_, iptcData_, xmpData_,