From e15c483e298d00e183d4cc85a0092c47f81f0145 Mon Sep 17 00:00:00 2001 From: clanmills Date: Wed, 13 May 2020 10:46:15 +0100 Subject: [PATCH] Use toString() instead of value() to write to std::cout. https://github.com/Exiv2/exiv2/issues/901#issuecomment-627872855 --- samples/xmpparse.cpp | 2 +- samples/xmpparser-test.cpp | 2 +- samples/xmpprint.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/xmpparse.cpp b/samples/xmpparse.cpp index 7469bfdc..7dabddf6 100644 --- a/samples/xmpparse.cpp +++ b/samples/xmpparse.cpp @@ -41,7 +41,7 @@ try { << std::dec << std::setw(3) << std::setfill(' ') << std::right << md->count() << " " - << std::dec << md->value() + << std::dec << md->toString() << std::endl; } Exiv2::XmpParser::terminate(); diff --git a/samples/xmpparser-test.cpp b/samples/xmpparser-test.cpp index 88ef032b..d7aef12b 100644 --- a/samples/xmpparser-test.cpp +++ b/samples/xmpparser-test.cpp @@ -43,7 +43,7 @@ try { << std::dec << std::setw(3) << std::setfill(' ') << std::right << md->count() << " " - << std::dec << md->value() + << std::dec << md->toString() << std::endl; } filename += "-new"; diff --git a/samples/xmpprint.cpp b/samples/xmpprint.cpp index 5dfa04a2..04f08294 100644 --- a/samples/xmpprint.cpp +++ b/samples/xmpprint.cpp @@ -55,7 +55,7 @@ int main(int argc, char** argv) << std::dec << std::setw(3) << std::setfill(' ') << std::right << md->count() << " " - << std::dec << md->value() + << std::dec << md->toString() << std::endl; }