summaryrefslogtreecommitdiff
path: root/Userland/md.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-03-01 12:35:09 +0100
committerAndreas Kling <kling@serenityos.org>2020-03-01 12:58:22 +0100
commit22d0a6d92f9e5a93b248eef0609d40ecb332f869 (patch)
tree6ec543d38dbeda281c6719ae5cc33ef3eb47c496 /Userland/md.cpp
parentfee20bd8de0f9c4222f7123f5c6ea31f00221d7b (diff)
downloadserenity-22d0a6d92f9e5a93b248eef0609d40ecb332f869.zip
AK: Remove unnecessary casts to size_t, after Vector changes
Now that Vector uses size_t, we can remove a whole bunch of redundant casts to size_t.
Diffstat (limited to 'Userland/md.cpp')
-rw-r--r--Userland/md.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/md.cpp b/Userland/md.cpp
index 50297ba47a..f0f5ee576e 100644
--- a/Userland/md.cpp
+++ b/Userland/md.cpp
@@ -68,7 +68,7 @@ int main(int argc, char* argv[])
auto buffer = file->read_all();
dbg() << "Read size " << buffer.size();
- String input { (const char*)buffer.data(), (size_t)buffer.size() };
+ auto input = String::copy(buffer);
MDDocument document;
success = document.parse(input);