diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-01-08 12:03:46 -0500 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-01-08 12:03:46 -0500 |
| commit | 016a1aa24fb973607bf830bdf1f954791a53a856 (patch) | |
| tree | e4407df63f1cb09db33f6cebd9394a364fcaa1dd | |
| parent | 4926cabd74150bf3887ea913209ec2020b4b745b (diff) | |
Fixed TS_LIST to only erase a value when the state is false and order of if true for short-circuit
| -rw-r--r-- | sigmod/Macros.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sigmod/Macros.h b/sigmod/Macros.h index 6213bc97..a934a2ac 100644 --- a/sigmod/Macros.h +++ b/sigmod/Macros.h @@ -1,5 +1,5 @@ /* - * Copyright 2008 Ben Boeckel <MathStuf@gmail.com> + * Copyright 2008-2009 Ben Boeckel <MathStuf@gmail.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -133,7 +133,7 @@ ERROR(limitError) #define TS_LIST_END(variable) \ } \ - else if (m_##variable.contains(variable)) \ + else if (!state && m_##variable.contains(variable)) \ { \ m_##variable.removeOne(variable); \ emit(changed()); \ |
