Micro-optimization.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33675 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-03-08 14:55:33 +00:00
parent b1d5168109
commit 13746b6d82

View File

@ -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();