]> git.lyx.org Git - lyx.git/blobdiff - 3rdparty/boost/boost/regex/v4/fileiter.hpp
Update boost to version 1.61
[lyx.git] / 3rdparty / boost / boost / regex / v4 / fileiter.hpp
index 4873a0a85e14bfc12a734457c1150e70108a7bf5..256a7e4606c93014843c5bbd10a3c3cbfa0b8121 100644 (file)
@@ -225,11 +225,11 @@ public:
    mapfile_iterator() { node = 0; file = 0; offset = 0; }
    mapfile_iterator(const mapfile* f, long arg_position)
    {
+      BOOST_ASSERT(f);
       file = f;
       node = f->_first + 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)
    {