AK: Make MappedFile non-copyable.

This commit is contained in:
Andreas Kling 2019-07-11 15:14:30 +02:00
parent 6534f5f083
commit 3d9f783e31

View file

@ -1,10 +1,12 @@
#pragma once #pragma once
#include "StringView.h" #include <AK/Noncopyable.h>
#include <AK/StringView.h>
namespace AK { namespace AK {
class MappedFile { class MappedFile {
AK_MAKE_NONCOPYABLE(MappedFile);
public: public:
MappedFile() {} MappedFile() {}
explicit MappedFile(const StringView& file_name); explicit MappedFile(const StringView& file_name);