mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-06 00:10:59 +00:00
Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40199 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
4368237595
commit
bfad09a073
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user