1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 09:34:57 +09:00

AK: Rename error() to has_error() for streams.

This commit is contained in:
asynts 2020-08-12 11:44:57 +02:00 committed by Andreas Kling
parent 6d15318560
commit bc332aca33
Notes: sideshowbarker 2024-07-19 03:24:13 +09:00
2 changed files with 11 additions and 11 deletions

View file

@ -37,10 +37,10 @@ class Stream {
public:
virtual ~Stream()
{
ASSERT(!error());
ASSERT(!has_error());
}
bool error() const { return m_error; }
bool has_error() const { return m_error; }
bool handle_error() { return exchange(m_error, false); }