mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 19:14:51 +00:00
Micro-optimization.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33675 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b1d5168109
commit
13746b6d82
@ -232,8 +232,10 @@ bool BufferList::exists(FileName const & fname) const
|
||||
}
|
||||
|
||||
|
||||
bool BufferList::isLoaded(Buffer const * b) const
|
||||
bool BufferList::isLoaded(Buffer const * b) const
|
||||
{
|
||||
if (!b)
|
||||
return false;
|
||||
BufferStorage::const_iterator cit =
|
||||
find(bstore.begin(), bstore.end(), b);
|
||||
return cit != bstore.end();
|
||||
|
Loading…
Reference in New Issue
Block a user