forked from boostorg/regex
Remove redundant check and make it an assert.
This commit is contained in:
@ -225,11 +225,11 @@ public:
|
|||||||
mapfile_iterator() { node = 0; file = 0; offset = 0; }
|
mapfile_iterator() { node = 0; file = 0; offset = 0; }
|
||||||
mapfile_iterator(const mapfile* f, long arg_position)
|
mapfile_iterator(const mapfile* f, long arg_position)
|
||||||
{
|
{
|
||||||
|
BOOST_ASSERT(f);
|
||||||
file = f;
|
file = f;
|
||||||
node = f->_first + arg_position / mapfile::buf_size;
|
node = f->_first + arg_position / mapfile::buf_size;
|
||||||
offset = arg_position % mapfile::buf_size;
|
offset = arg_position % mapfile::buf_size;
|
||||||
if(file)
|
file->lock(node);
|
||||||
file->lock(node);
|
|
||||||
}
|
}
|
||||||
mapfile_iterator(const mapfile_iterator& i)
|
mapfile_iterator(const mapfile_iterator& i)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user