|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r67580 - sandbox/gil/boost/gil/extension/io2/detail
From: dsaritz_at_[hidden]
Date: 2011-01-02 14:14:23
Author: psiha
Date: 2011-01-02 14:14:17 EST (Sun, 02 Jan 2011)
New Revision: 67580
URL: http://svn.boost.org/trac/boost/changeset/67580
Log:
Minor refactoring and stylistic changes.
Text files modified:
sandbox/gil/boost/gil/extension/io2/detail/memory_mapping.cpp | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
Modified: sandbox/gil/boost/gil/extension/io2/detail/memory_mapping.cpp
==============================================================================
--- sandbox/gil/boost/gil/extension/io2/detail/memory_mapping.cpp (original)
+++ sandbox/gil/boost/gil/extension/io2/detail/memory_mapping.cpp 2011-01-02 14:14:17 EST (Sun, 02 Jan 2011)
@@ -247,8 +247,10 @@
if ( handle_access_flags & handle_access_rights::write )
flags.create_mapping_flags *= 4;
else
- //if ( handle_access_flags & handle_access_rights::read )
+ {
+ BOOST_ASSERT( handle_access_flags & handle_access_rights::read );
flags.create_mapping_flags *= 2;
+ }
flags.create_mapping_flags |= system_hints;
@@ -328,8 +330,8 @@
mapping_flags::create
(
mapping_flags::handle_access_rights::read,
- mapping_flags::share_mode::shared,
- mapping_flags::system_hint::uninitialized
+ mapping_flags::share_mode ::shared,
+ mapping_flags::system_hint ::uninitialized
),
desiredSize
)
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk