Skip to content

Commit

Permalink
use QByteArray::isEmpty()
Browse files Browse the repository at this point in the history
  • Loading branch information
tsteven4 committed Feb 13, 2025
1 parent dd65a37 commit fcadf86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exif.cc
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ ExifFormat::exif_read_str(ExifTag* tag)
if (auto idx = buf.indexOf('\0'); idx >= 0) {
buf = buf.left(idx);
}
while ((buf.size() > 0) && isspace(buf.back())) {
while ((!buf.isEmpty()) && isspace(buf.back())) {
buf.chop(1);
}
return buf;
Expand Down

0 comments on commit fcadf86

Please sign in to comment.