Cosmetics.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40199 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2011-11-15 18:24:42 +00:00
parent 4368237595
commit bfad09a073

View File

@ -180,8 +180,8 @@ Buffer * BufferList::next(Buffer const * buf) const
if (bstore.empty()) if (bstore.empty())
return 0; return 0;
BufferStorage::const_iterator it = find(bstore.begin(), BufferStorage::const_iterator it =
bstore.end(), buf); find(bstore.begin(), bstore.end(), buf);
LASSERT(it != bstore.end(), /**/); LASSERT(it != bstore.end(), /**/);
++it; ++it;
Buffer * nextbuf = (it == bstore.end()) ? bstore.front() : *it; Buffer * nextbuf = (it == bstore.end()) ? bstore.front() : *it;
@ -195,8 +195,8 @@ Buffer * BufferList::previous(Buffer const * buf) const
if (bstore.empty()) if (bstore.empty())
return 0; return 0;
BufferStorage::const_iterator it = find(bstore.begin(), BufferStorage::const_iterator it =
bstore.end(), buf); find(bstore.begin(), bstore.end(), buf);
LASSERT(it != bstore.end(), /**/); LASSERT(it != bstore.end(), /**/);
Buffer * previousbuf = (it == bstore.begin()) ? bstore.back() : *(it - 1); Buffer * previousbuf = (it == bstore.begin()) ? bstore.back() : *(it - 1);