aboutsummaryrefslogtreecommitdiff
path: root/libphobos/src/std/mmfile.d
diff options
context:
space:
mode:
Diffstat (limited to 'libphobos/src/std/mmfile.d')
-rw-r--r--libphobos/src/std/mmfile.d10
1 files changed, 5 insertions, 5 deletions
diff --git a/libphobos/src/std/mmfile.d b/libphobos/src/std/mmfile.d
index e4000d4..f8f8a90 100644
--- a/libphobos/src/std/mmfile.d
+++ b/libphobos/src/std/mmfile.d
@@ -71,13 +71,13 @@ class MmFile
* - On POSIX, $(REF ErrnoException, std, exception).
* - On Windows, $(REF WindowsException, std, windows, syserror).
*/
- this(string filename)
+ this(string filename) scope
{
this(filename, Mode.read, 0, null);
}
version (linux) this(File file, Mode mode = Mode.read, ulong size = 0,
- void* address = null, size_t window = 0)
+ void* address = null, size_t window = 0) scope
{
// Save a copy of the File to make sure the fd stays open.
this.file = file;
@@ -85,7 +85,7 @@ class MmFile
}
version (linux) private this(int fildes, Mode mode, ulong size,
- void* address, size_t window)
+ void* address, size_t window) scope
{
int oflag;
int fmode;
@@ -169,7 +169,7 @@ class MmFile
* - On Windows, $(REF WindowsException, std, windows, syserror).
*/
this(string filename, Mode mode, ulong size, void* address,
- size_t window = 0)
+ size_t window = 0) scope
{
this.filename = filename;
this.mMode = mode;
@@ -364,7 +364,7 @@ class MmFile
/**
* Flushes pending output and closes the memory mapped file.
*/
- ~this()
+ ~this() scope
{
debug (MMFILE) printf("MmFile.~this()\n");
unmap();