~ubuntu-branches/ubuntu/saucy/goldencheetah/saucy

« back to all changes in this revision

Viewing changes to src/RideFileCommand.cpp

  • Committer: Package Import Robot
  • Author(s): KURASHIKI Satoru
  • Date: 2013-08-18 07:02:45 UTC
  • mfrom: (4.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20130818070245-zgdvb47e1k3mtgil
Tags: 3.0-3
debian/control: remove needless dependency. (Closes: #719571)

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include <math.h>
23
23
#include <float.h>
24
24
 
25
 
#define tr(s) QObject::tr(s)
26
 
 
27
25
// comparing doubles is nasty
28
26
static bool doubles_equal(double a, double b)
29
27
{
152
150
 
153
151
    // place onto stack
154
152
    if (stack.count()) {
 
153
        // wipe away commands we can no longer redo
 
154
        for (int i=stackptr; i<stack.count(); i++) delete stack.at(i);
155
155
        stack.remove(stackptr, stack.count() - stackptr);
156
 
        // XXX mem leak need to delete
157
156
    }
158
157
    stack.append(cmd);
159
158
    stackptr++;