diff options
author | Andreas Kling <kling@serenityos.org> | 2020-12-19 11:30:02 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-19 11:30:02 +0100 |
commit | 0e4ecca33621b5f7df1a74c48e3e6da920889627 (patch) | |
tree | 6a860d2f803ec57f0a557b8f71813de51069e207 /DevTools | |
parent | d893498e5738b9d37bd07bdedb4709ae46750fbd (diff) | |
download | serenity-0e4ecca33621b5f7df1a74c48e3e6da920889627.zip |
LibIPC: Remove use of ByteBuffer::wrap()
ByteBuffer::wrap() was useful before we had Span. Let's see if we can't
get rid of some more ByteBuffer wrapping.
Diffstat (limited to 'DevTools')
-rw-r--r-- | DevTools/IPCCompiler/main.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/DevTools/IPCCompiler/main.cpp b/DevTools/IPCCompiler/main.cpp index 586f93cfe9..165899ea1e 100644 --- a/DevTools/IPCCompiler/main.cpp +++ b/DevTools/IPCCompiler/main.cpp @@ -24,7 +24,6 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include <AK/ByteBuffer.h> #include <AK/Function.h> #include <AK/GenericLexer.h> #include <AK/HashMap.h> @@ -437,7 +436,7 @@ public: static String static_name() { return "@endpoint.name@"; } virtual String name() const override { return "@endpoint.name@"; } - static OwnPtr<IPC::Message> decode_message(const ByteBuffer& buffer, int sockfd) + static OwnPtr<IPC::Message> decode_message(ReadonlyBytes buffer, int sockfd) { InputMemoryStream stream { buffer }; i32 message_endpoint_magic = 0; |