mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 16:37:28 +00:00
cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30780 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
42dcca6b00
commit
c155dcbfe9
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user