diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2013-10-16 19:47:12 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2013-10-16 19:47:12 +0000 |
| commit | af8374a9745905bde55e5b19425bf95b2fd3f935 (patch) | |
| tree | fe0f4cc183027fa595b61b69275c69e2d2af8142 /src/libvpsc/constraint.cpp | |
| parent | Fix colour variable type with gtkmm 3 (diff) | |
| download | inkscape-af8374a9745905bde55e5b19425bf95b2fd3f935.tar.gz inkscape-af8374a9745905bde55e5b19425bf95b2fd3f935.zip | |
static code analysis: performance
(bzr r12695)
Diffstat (limited to 'src/libvpsc/constraint.cpp')
| -rw-r--r-- | src/libvpsc/constraint.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libvpsc/constraint.cpp b/src/libvpsc/constraint.cpp index 2bd173155..0ec06dfac 100644 --- a/src/libvpsc/constraint.cpp +++ b/src/libvpsc/constraint.cpp @@ -24,11 +24,11 @@ Constraint::Constraint(Variable *left, Variable *right, double gap, bool equalit } Constraint::~Constraint() { Constraints::iterator i; - for(i=left->out.begin(); i!=left->out.end(); i++) { + for(i=left->out.begin(); i!=left->out.end(); ++i) { if(*i==this) break; } left->out.erase(i); - for(i=right->in.begin(); i!=right->in.end(); i++) { + for(i=right->in.begin(); i!=right->in.end(); ++i) { if(*i==this) break; } right->in.erase(i); |
