mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
cmake: fix merged build
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34954 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f151f3a30f
commit
30bae1710a
@ -255,12 +255,12 @@ Buffer * BufferList::getBuffer(support::FileName const & fname) const
|
||||
{
|
||||
// 1) cheap test, using string comparison of file names
|
||||
BufferStorage::const_iterator it = find_if(bstore.begin(), bstore.end(),
|
||||
bind(equal_to<FileName>(), bind(&Buffer::fileName, _1), fname));
|
||||
lyx::bind(equal_to<FileName>(), lyx::bind(&Buffer::fileName, _1), fname));
|
||||
if (it != bstore.end())
|
||||
return *it;
|
||||
// 2) possibly expensive test, using equivalence test of file names
|
||||
it = find_if(bstore.begin(), bstore.end(),
|
||||
bind(equivalent_to(), bind(&Buffer::fileName, _1), fname));
|
||||
lyx::bind(equivalent_to(), lyx::bind(&Buffer::fileName, _1), fname));
|
||||
return it != bstore.end() ? (*it) : 0;
|
||||
}
|
||||
|
||||
|
@ -84,7 +84,7 @@ private:
|
||||
Murder(int secs, pid_t pid)
|
||||
: timeout_(1000*secs, Timeout::ONETIME), pid_(pid)
|
||||
{
|
||||
timeout_.timeout.connect(bind(&Murder::kill, this));
|
||||
timeout_.timeout.connect(lyx::bind(&Murder::kill, this));
|
||||
timeout_.start();
|
||||
}
|
||||
|
||||
@ -448,7 +448,7 @@ void callNext()
|
||||
Process pro = callQueue_.front();
|
||||
callQueue_.pop();
|
||||
// Bind our chain caller
|
||||
pro.second->connect(bind(&ForkedCallQueue::callback, _1, _2));
|
||||
pro.second->connect(lyx::bind(&ForkedCallQueue::callback, _1, _2));
|
||||
ForkedCall call;
|
||||
//If we fail to fork the process, then emit the signal
|
||||
//to tell the outside world that it failed.
|
||||
@ -537,8 +537,8 @@ static ListType forkedCalls;
|
||||
iterator find_pid(pid_t pid)
|
||||
{
|
||||
return find_if(forkedCalls.begin(), forkedCalls.end(),
|
||||
bind(equal_to<pid_t>(),
|
||||
bind(&ForkedCall::pid, _1),
|
||||
lyx::bind(equal_to<pid_t>(),
|
||||
lyx::bind(&ForkedCall::pid, _1),
|
||||
pid));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user