diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-05-16 08:47:46 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-16 17:49:42 +0200 |
commit | 53d015082749b9bf43a2160d5553bc0e9e1086ef (patch) | |
tree | 75a4730a88c2a99bb3d0af0200274d1c72f430d7 /Userland/Libraries/LibWeb/Loader | |
parent | c4d0b0cd6b0d0b2c773ce8f11ac9d0aaec36f9b6 (diff) | |
download | serenity-53d015082749b9bf43a2160d5553bc0e9e1086ef.zip |
AK+Userland: Remove nullability feature for the ByteBuffer type
Nobody seems to use this particular feature, in fact there were some
bugs which were uncovered by removing operator bool.
Diffstat (limited to 'Userland/Libraries/LibWeb/Loader')
-rw-r--r-- | Userland/Libraries/LibWeb/Loader/Resource.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Loader/Resource.h b/Userland/Libraries/LibWeb/Loader/Resource.h index 1575040ba0..1fca238e3e 100644 --- a/Userland/Libraries/LibWeb/Loader/Resource.h +++ b/Userland/Libraries/LibWeb/Loader/Resource.h @@ -42,7 +42,7 @@ public: bool is_failed() const { return m_failed; } const String& error() const { return m_error; } - bool has_encoded_data() const { return !m_encoded_data.is_null(); } + bool has_encoded_data() const { return !m_encoded_data.is_empty(); } const URL& url() const { return m_request.url(); } const ByteBuffer& encoded_data() const { return m_encoded_data; } |