Kevin Backhouse 4 years ago
parent 774e6625e3
commit 9f1e3e3e72
No known key found for this signature in database
GPG Key ID: 9DD01852EE40366E

@ -1014,8 +1014,8 @@ namespace Exiv2 {
std::ostream& PentaxMakerNote::printVersion(std::ostream& os, const Value& value, const ExifData*) std::ostream& PentaxMakerNote::printVersion(std::ostream& os, const Value& value, const ExifData*)
{ {
std::string val = value.toString(); std::string val = value.toString();
size_t i; size_t i = 0;
while ((i = val.find(' ')) != std::string::npos && i != val.length() - 1) { while ((i = val.find(' ', i)) != std::string::npos && i != val.length() - 1) {
val.replace(i, 1, "."); val.replace(i, 1, ".");
} }
os << val; os << val;
@ -1025,8 +1025,8 @@ namespace Exiv2 {
std::ostream& PentaxMakerNote::printResolution(std::ostream& os, const Value& value, const ExifData*) std::ostream& PentaxMakerNote::printResolution(std::ostream& os, const Value& value, const ExifData*)
{ {
std::string val = value.toString(); std::string val = value.toString();
size_t i; size_t i = 0;
while ((i = val.find(' ')) != std::string::npos && i != val.length() - 1) { while ((i = val.find(' ', i)) != std::string::npos && i != val.length() - 1) {
val.replace(i, 1, "x"); val.replace(i, 1, "x");
} }
os << val; os << val;

Loading…
Cancel
Save