+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>
* GraphicsConverter.[Ch] (converted): make first arg const ref.
GCache::CacheType::iterator
GCache::find(InsetGraphics const & inset)
{
- CacheType::iterator it = cache->begin();
- for (; it != cache->end(); ++it) {
+ CacheType::iterator it = cache->begin();
+ CacheType::iterator end = cache->end();
+ for (; it != end; ++it) {
if (it->second->referencedBy(inset))
return it;
}
GCache::CacheType::const_iterator
GCache::find(InsetGraphics const & inset) const
{
- CacheType::const_iterator it = cache->begin();
- for (; it != cache->end(); ++it) {
+ CacheType::const_iterator it = cache->begin();
+ CacheType::const_iterator end = cache->end();
+ for (; it != end; ++it) {
if (it->second->referencedBy(inset))
return it;
}
+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>
* forkedcall.h: docy fix
ForkedcallsController::ForkedcallsController()
{
- timeout_ = new Timeout(100, Timeout::CONTINUOUS);
+ timeout_ = new Timeout(100, Timeout::ONETIME);
timeout_->timeout
.connect(SigC::slot(this, &ForkedcallsController::timer));
}
}
- if (forkedCalls.empty()) {
- timeout_->stop();
+ if (!forkedCalls.empty()) {
+ timeout_->start();
}
if (start_size != forkedCalls.size())