File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1526,8 +1526,8 @@ int ValueType<T>::read(const std::string& buf) {
1526
1526
template <typename T>
1527
1527
size_t ValueType<T>::copy (byte* buf, ByteOrder byteOrder) const {
1528
1528
size_t offset = 0 ;
1529
- for (auto i = value_. begin (); i != value_. end (); ++i ) {
1530
- offset += toData (buf + offset, *i , byteOrder);
1529
+ for (const auto & val : value_) {
1530
+ offset += toData (buf + offset, val , byteOrder);
1531
1531
}
1532
1532
return offset;
1533
1533
}
Original file line number Diff line number Diff line change @@ -313,9 +313,9 @@ const char* IptcData::detectCharset() const {
313
313
bool ascii = true ;
314
314
bool utf8 = true ;
315
315
316
- for (pos = begin (); pos != end (); ++pos ) {
317
- std::string value = pos-> toString ();
318
- if (pos-> value ().ok ()) {
316
+ for (const auto & key : * this ) {
317
+ std::string value = key. toString ();
318
+ if (key. value ().ok ()) {
319
319
int seqCount = 0 ;
320
320
for (auto c : value) {
321
321
if (seqCount) {
You can’t perform that action at this time.
0 commit comments