Skip to content

Commit

Permalink
rstest: sink init into for()
Browse files Browse the repository at this point in the history
  • Loading branch information
LebedevRI committed Nov 9, 2023
1 parent 3da29bb commit a5a9a66
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utilities/rstest/rstest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,7 @@ std::string img_hash(const RawImage& r, bool noSamples) {
APPEND(&oss, "md5sum of per-line md5sums: %s\n",
rawspeed::md5::hash_to_string(hash_of_line_hashes).c_str());

const auto errors = r->getErrors();
for (const std::string& e : errors)
for (const auto errors = r->getErrors(); const std::string& e : errors)
APPEND(&oss, "WARNING: [rawspeed] %s\n", e.c_str());

return oss.str();
Expand Down

0 comments on commit a5a9a66

Please sign in to comment.