cosmetics

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30780 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2009-07-25 16:43:28 +00:00
parent 42dcca6b00
commit c155dcbfe9

View File

@ -316,7 +316,7 @@ Buffer * BufferList::getBuffer(support::FileName const & fname) const
bind(equal_to<FileName>(), bind(&Buffer::fileName, _1), fname)); bind(equal_to<FileName>(), bind(&Buffer::fileName, _1), fname));
if (it != bstore.end()) if (it != bstore.end())
return *it; return *it;
// 2) possibly expensive test, using quivalence test of file names // 2) possibly expensive test, using equivalence test of file names
it = find_if(bstore.begin(), bstore.end(), it = find_if(bstore.begin(), bstore.end(),
bind(equivalent_to(), bind(&Buffer::fileName, _1), fname)); bind(equivalent_to(), bind(&Buffer::fileName, _1), fname));
return it != bstore.end() ? (*it) : 0; return it != bstore.end() ? (*it) : 0;