Scope hiding fixes

This commit is contained in:
Pavel Kirienko
2014-04-19 16:32:42 +04:00
parent c4c77ea321
commit 799846de02
11 changed files with 36 additions and 36 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ bool DeadlineHandler::isRunning() const
struct MonotonicDeadlineHandlerInsertionComparator
{
const MonotonicTime ts;
explicit MonotonicDeadlineHandlerInsertionComparator(MonotonicTime ts) : ts(ts) { }
explicit MonotonicDeadlineHandlerInsertionComparator(MonotonicTime arg_ts) : ts(arg_ts) { }
bool operator()(const DeadlineHandler* t) const
{
return t->getDeadline() > ts;
@@ -50,8 +50,8 @@ int GlobalTimeSyncMaster::IfaceMaster::publish(TransferID tid, MonotonicTime cur
assert(pub_.getTransferSender()->getCanIOFlags() == CanIOFlagLoopback);
assert(pub_.getTransferSender()->getIfaceMask() == (1 << iface_index_));
const MonotonicDuration since_prev_pub = current_time - prev_pub_mono_;
prev_pub_mono_ = current_time;
const MonotonicDuration since_prev_pub = current_time - iface_prev_pub_mono_;
iface_prev_pub_mono_ = current_time;
assert(since_prev_pub.isPositive());
const bool long_period = since_prev_pub.toMSec() >= protocol::GlobalTimeSync::MAX_PUBLICATION_PERIOD_MS;
@@ -89,7 +89,7 @@ bool TransferListenerBase::TimedOutReceiverPredicate::operator()(const TransferB
* destroy the buffers manually.
* Maybe it is not good that the predicate has side effects, but I ran out of better ideas.
*/
bufmgr_.remove(key);
parent_bufmgr_.remove(key);
return true;
}
return false;