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:
parent
6d15318560
commit
bc332aca33
Notes:
sideshowbarker
2024-07-19 03:24:13 +09:00
Author: https://github.com/asynts
Commit: bc332aca33
Pull-request: https://github.com/SerenityOS/serenity/pull/3220
Reviewed-by: https://github.com/awesomekling
2 changed files with 11 additions and 11 deletions
|
@ -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); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue