From 51caa6a888349448dbf4e444632ff7b818a4a8a7 Mon Sep 17 00:00:00 2001 From: Andreas Huggel Date: Tue, 20 May 2008 08:15:08 +0000 Subject: [PATCH] More minor changes. --- src/convert.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/convert.cpp b/src/convert.cpp index 4dc6d13b..f4f7cd6a 100644 --- a/src/convert.cpp +++ b/src/convert.cpp @@ -962,7 +962,7 @@ namespace Exiv2 { if (pos == xmpData_->end()) return; if (!prepareIptcTarget(to)) return; int count = pos->value().count(); - for (int i = 0; i < count; i++) { + for (int i = 0; i < count; ++i) { std::string value = pos->value().toString(); if (!pos->value().ok()) { #ifndef SUPPRESS_WARNINGS @@ -1070,8 +1070,7 @@ namespace Exiv2 { MD5Update(&context, data.pData_, data.size_); MD5Final(digest, &context); res << std::setw(2) << std::setfill('0') << std::hex << std::uppercase; - int i; - for (i = 0; i < 16; i++) { + for (int i = 0; i < 16; ++i) { res << static_cast(digest[i]); } return res.str();