refactor: Use empty() over eof() in the streams interface

End-of-file does not really make sense for streams that wrap buffers. So
replace it by the equivalent empty() checks.
This commit is contained in:
MarcoFalke
2026-02-02 17:56:13 +01:00
parent fa879db735
commit fa20bc2ec2
5 changed files with 4 additions and 5 deletions

View File

@@ -364,7 +364,7 @@ struct StringContentsSerializer {
{
str.clear();
uint8_t c{0};
while (!s.eof()) {
while (!s.empty()) {
s >> c;
str.push_back(c);
}