Clean up testcase source whitespace
This commit is contained in:
parent
860731e0ea
commit
9f87d81fae
1 changed files with 9 additions and 11 deletions
|
|
@ -22,19 +22,19 @@
|
|||
virtual ~Geometry() {}
|
||||
virtual int draw() = 0;
|
||||
static Geometry *create(GeomType i);
|
||||
virtual Geometry *clone() = 0;
|
||||
virtual Geometry *clone() = 0;
|
||||
};
|
||||
|
||||
struct Point : Geometry {
|
||||
int draw() { return 1; }
|
||||
double width() { return 1.0; }
|
||||
Geometry *clone() { return new Point(); }
|
||||
Geometry *clone() { return new Point(); }
|
||||
};
|
||||
|
||||
struct Circle : Geometry {
|
||||
int draw() { return 2; }
|
||||
double radius() { return 1.5; }
|
||||
Geometry *clone() { return new Circle(); }
|
||||
Geometry *clone() { return new Circle(); }
|
||||
};
|
||||
|
||||
Geometry *Geometry::create(GeomType type) {
|
||||
|
|
@ -45,5 +45,3 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue