Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ACGL
acgl
Commits
211adda7
Commit
211adda7
authored
May 28, 2014
by
Martin Schultz
Browse files
* removed some warnings
parent
ea70661f
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/ACGL/Utils/MemoryMappedFile.cc
View file @
211adda7
...
...
@@ -3,7 +3,6 @@
* All rights reserved. *
* Distributed under the terms of the MIT License (see LICENSE.TXT). *
**********************************************************************/
#pragma once
///////////////////////////////////////////////////////////////////////
//
...
...
src/ACGL/Utils/MemoryMappedFilePosixImpl.cc
View file @
211adda7
...
...
@@ -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
;
...
...
src/ACGL/Utils/MemoryMappedFileWinImpl.cc
View file @
211adda7
...
...
@@ -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"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment