From 7210673084d691b0c125a5bda3c868438c19eff1 Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Thu, 22 Nov 2012 11:06:49 +1100 Subject: A few fixes. --- impl/VariableAssignment.hpp | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'impl') diff --git a/impl/VariableAssignment.hpp b/impl/VariableAssignment.hpp index 67896ef..2967fb6 100644 --- a/impl/VariableAssignment.hpp +++ b/impl/VariableAssignment.hpp @@ -60,17 +60,15 @@ struct DynamicVariableAssignment : public VariableAssignment { IdSet > get_changed() { IdSet > changed; - if (_touched.size() > 0) { - for (typename IdSet >::iterator - it = _touched.begin(), - ei = _touched.end(); - it != ei; - ++it) { - Variable& var = _system.variable(*it); - if (!_unstable.contains(var) && _old_values[var] != _values[var]) { - changed.insert(var); - _touched.remove(var); - } + for (typename IdSet >::iterator + it = _touched.begin(), + ei = _touched.end(); + it != ei; + ++it) { + Variable& var = _system.variable(*it); + if (!_unstable.contains(var) && _old_values[var] != _values[var]) { + changed.insert(var); + _touched.remove(var); } } //_touched.clear(); -- cgit v1.2.3