diff options
author | asynts <asynts@gmail.com> | 2020-07-27 14:16:33 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-27 19:58:09 +0200 |
commit | abe925e4b08fca8eaac4d3e63508cbb9ff5c1733 (patch) | |
tree | dfd4e9bcc2edb1ced4542df0727dad39ae1f85e5 /Libraries/LibWeb | |
parent | 5fa0fdb2192cea73fb9e19c720693d91ef944101 (diff) | |
download | serenity-abe925e4b08fca8eaac4d3e63508cbb9ff5c1733.zip |
AK: Change the signature of AK::encode_base64() to use Span.
Diffstat (limited to 'Libraries/LibWeb')
-rw-r--r-- | Libraries/LibWeb/Bindings/WindowObject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibWeb/Bindings/WindowObject.cpp b/Libraries/LibWeb/Bindings/WindowObject.cpp index 6e604ec2f1..de382cf9ba 100644 --- a/Libraries/LibWeb/Bindings/WindowObject.cpp +++ b/Libraries/LibWeb/Bindings/WindowObject.cpp @@ -28,8 +28,8 @@ #include <AK/ByteBuffer.h> #include <AK/FlyString.h> #include <AK/Function.h> -#include <AK/Utf8View.h> #include <AK/String.h> +#include <AK/Utf8View.h> #include <LibJS/Interpreter.h> #include <LibJS/Runtime/Error.h> #include <LibJS/Runtime/Function.h> @@ -278,7 +278,7 @@ JS_DEFINE_NATIVE_FUNCTION(WindowObject::btoa) byte_string.append(codepoint); } - auto encoded = encode_base64(ByteBuffer::wrap(byte_string.data(), byte_string.size())); + auto encoded = encode_base64(byte_string.span()); return JS::js_string(interpreter, move(encoded)); } |