Commit 211adda7 authored by Martin Schultz's avatar Martin Schultz

* removed some warnings

parent ea70661f
......@@ -3,7 +3,6 @@
* All rights reserved. *
* Distributed under the terms of the MIT License (see LICENSE.TXT). *
**********************************************************************/
#pragma once
///////////////////////////////////////////////////////////////////////
//
......
......@@ -3,7 +3,7 @@
* All rights reserved. *
* Distributed under the terms of the MIT License (see LICENSE.TXT). *
**********************************************************************/
#pragma once
#if defined (__unix)||defined (__APPLE__)
#include "ACGL/Utils/MemoryMappedFilePosixImpl.hh"
#include <sys/types.h>
......@@ -18,7 +18,7 @@ MemoryMappedFilePosixImpl::MemoryMappedFilePosixImpl(
ACGL::Utils::MemoryMappedFile::shareMode _shareMode,
size_t _length,
off_t _offset):
mFileHandle(NULL),
mFileHandle(0),
mPageOffset(0),
mpData(nullptr),
mErrorCode(0)
......@@ -42,7 +42,7 @@ MemoryMappedFilePosixImpl::MemoryMappedFilePosixImpl(
pageAccess = PROT_READ | PROT_WRITE;
}
if(mFileHandle == NULL)
if(mFileHandle == 0)
{
mErrorCode = 2;
ACGL::Utils::error()<<"Could not map the File: "<<_fileName<<" to Ram. File was not found"<<std::endl;
......
......@@ -3,7 +3,7 @@
* All rights reserved. *
* Distributed under the terms of the MIT License (see LICENSE.TXT). *
**********************************************************************/
#pragma once
#ifdef _WIN32
#include "ACGL/Utils/MemoryMappedFileWinImpl.hh"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment