diff options
Diffstat (limited to 'Libraries/LibCore/IODevice.h')
-rw-r--r-- | Libraries/LibCore/IODevice.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Libraries/LibCore/IODevice.h b/Libraries/LibCore/IODevice.h index 68b4d9782a..d9f2971769 100644 --- a/Libraries/LibCore/IODevice.h +++ b/Libraries/LibCore/IODevice.h @@ -26,8 +26,7 @@ #pragma once -#include <AK/ByteBuffer.h> -#include <AK/StringView.h> +#include <AK/Forward.h> #include <LibCore/Object.h> namespace Core { @@ -64,7 +63,7 @@ public: ByteBuffer read_all(); bool write(const u8*, int size); - bool write(const StringView& v) { return write((const u8*)v.characters_without_null_termination(), v.length()); } + bool write(const StringView&); // FIXME: I would like this to be const but currently it needs to call populate_read_buffer(). bool can_read_line(); |