1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:27:46 +00:00

StringViewize a bunch of things -- mostly LibGUI

This commit is contained in:
Robin Burchell 2019-06-02 14:58:02 +02:00 committed by Andreas Kling
parent f9ba7adae2
commit 1024dfa81a
59 changed files with 129 additions and 139 deletions

View file

@ -1,13 +1,13 @@
#pragma once
#include "AKString.h"
#include "StringView.h"
namespace AK {
class MappedFile {
public:
MappedFile() {}
explicit MappedFile(const String& file_name);
explicit MappedFile(const StringView& file_name);
MappedFile(MappedFile&&);
~MappedFile();
@ -21,7 +21,6 @@ public:
size_t size() const { return m_size; }
private:
String m_file_name;
size_t m_size { 0 };
int m_fd { -1 };
void* m_map { (void*)-1 };