mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 13:04:58 +00:00
Two little things:
* Use Lars' preferred idiom for a for-loop in the graphics cache; * Turn the forked call controller's timer off when their are no longer any child processes running. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3755 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
4b64a5f485
commit
b2f4586c98
@ -1,3 +1,7 @@
|
|||||||
|
2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
|
||||||
|
|
||||||
|
* GraphicsCache.C: use Lars' preferred idiom for a for-loop.
|
||||||
|
|
||||||
2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
|
2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
|
||||||
|
|
||||||
* GraphicsConverter.[Ch] (converted): make first arg const ref.
|
* GraphicsConverter.[Ch] (converted): make first arg const ref.
|
||||||
|
@ -142,7 +142,8 @@ GCache::CacheType::iterator
|
|||||||
GCache::find(InsetGraphics const & inset)
|
GCache::find(InsetGraphics const & inset)
|
||||||
{
|
{
|
||||||
CacheType::iterator it = cache->begin();
|
CacheType::iterator it = cache->begin();
|
||||||
for (; it != cache->end(); ++it) {
|
CacheType::iterator end = cache->end();
|
||||||
|
for (; it != end; ++it) {
|
||||||
if (it->second->referencedBy(inset))
|
if (it->second->referencedBy(inset))
|
||||||
return it;
|
return it;
|
||||||
}
|
}
|
||||||
@ -155,7 +156,8 @@ GCache::CacheType::const_iterator
|
|||||||
GCache::find(InsetGraphics const & inset) const
|
GCache::find(InsetGraphics const & inset) const
|
||||||
{
|
{
|
||||||
CacheType::const_iterator it = cache->begin();
|
CacheType::const_iterator it = cache->begin();
|
||||||
for (; it != cache->end(); ++it) {
|
CacheType::const_iterator end = cache->end();
|
||||||
|
for (; it != end; ++it) {
|
||||||
if (it->second->referencedBy(inset))
|
if (it->second->referencedBy(inset))
|
||||||
return it;
|
return it;
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
|
||||||
|
|
||||||
|
* forkedcontr.C: turn the timer off when their are no longer any
|
||||||
|
child processes running.
|
||||||
|
|
||||||
2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
|
2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
|
||||||
|
|
||||||
* forkedcall.h: docy fix
|
* forkedcall.h: docy fix
|
||||||
|
@ -45,7 +45,7 @@ ForkedcallsController & ForkedcallsController::get()
|
|||||||
|
|
||||||
ForkedcallsController::ForkedcallsController()
|
ForkedcallsController::ForkedcallsController()
|
||||||
{
|
{
|
||||||
timeout_ = new Timeout(100, Timeout::CONTINUOUS);
|
timeout_ = new Timeout(100, Timeout::ONETIME);
|
||||||
|
|
||||||
timeout_->timeout
|
timeout_->timeout
|
||||||
.connect(SigC::slot(this, &ForkedcallsController::timer));
|
.connect(SigC::slot(this, &ForkedcallsController::timer));
|
||||||
@ -143,8 +143,8 @@ void ForkedcallsController::timer()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (forkedCalls.empty()) {
|
if (!forkedCalls.empty()) {
|
||||||
timeout_->stop();
|
timeout_->start();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (start_size != forkedCalls.size())
|
if (start_size != forkedCalls.size())
|
||||||
|
Loading…
Reference in New Issue
Block a user