mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-12 08:37:58 +02:00
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:
@@ -364,7 +364,7 @@ struct StringContentsSerializer {
|
||||
{
|
||||
str.clear();
|
||||
uint8_t c{0};
|
||||
while (!s.eof()) {
|
||||
while (!s.empty()) {
|
||||
s >> c;
|
||||
str.push_back(c);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user