Skip to content

Commit

Permalink
Remove bogus ; after } in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ojwb committed Nov 7, 2014
1 parent e047d2e commit 37cd147
Show file tree
Hide file tree
Showing 18 changed files with 43 additions and 43 deletions.
6 changes: 3 additions & 3 deletions Examples/contract/simple_cxx/example.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Shape {
}
virtual ~Shape() {
nshapes--;
};
}
double x, y;
void move(double dx, double dy);
virtual double area(void) = 0;
Expand All @@ -19,7 +19,7 @@ class Circle : public Shape {
private:
double radius;
public:
Circle(double r) : radius(r) { };
Circle(double r) : radius(r) { }
virtual double area(void);
virtual double perimeter(void);
};
Expand All @@ -28,7 +28,7 @@ class Square : public Shape {
private:
double width;
public:
Square(double w) : width(w) { };
Square(double w) : width(w) { }
virtual double area(void);
virtual double perimeter(void);
};
4 changes: 2 additions & 2 deletions Examples/csharp/reference/example.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ class Vector {
private:
double x,y,z;
public:
Vector() : x(0), y(0), z(0) { };
Vector(double x, double y, double z) : x(x), y(y), z(z) { };
Vector() : x(0), y(0), z(0) { }
Vector(double x, double y, double z) : x(x), y(y), z(z) { }
friend Vector operator+(const Vector &a, const Vector &b);
char *print();
};
Expand Down
4 changes: 2 additions & 2 deletions Examples/go/reference/example.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ class Vector {
private:
double x,y,z;
public:
Vector() : x(0), y(0), z(0) { };
Vector(double x, double y, double z) : x(x), y(y), z(z) { };
Vector() : x(0), y(0), z(0) { }
Vector(double x, double y, double z) : x(x), y(y), z(z) { }
friend Vector operator+(const Vector &a, const Vector &b);
char *print();
};
Expand Down
4 changes: 2 additions & 2 deletions Examples/java/reference/example.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ class Vector {
private:
double x,y,z;
public:
Vector() : x(0), y(0), z(0) { };
Vector(double x, double y, double z) : x(x), y(y), z(z) { };
Vector() : x(0), y(0), z(0) { }
Vector(double x, double y, double z) : x(x), y(y), z(z) { }
friend Vector operator+(const Vector &a, const Vector &b);
char *print();
};
Expand Down
4 changes: 2 additions & 2 deletions Examples/javascript/reference/example.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ class Vector {
private:
double x,y,z;
public:
Vector() : x(0), y(0), z(0) { };
Vector(double x, double y, double z) : x(x), y(y), z(z) { };
Vector() : x(0), y(0), z(0) { }
Vector(double x, double y, double z) : x(x), y(y), z(z) { }
friend Vector operator+(const Vector &a, const Vector &b);
char *print();
};
Expand Down
4 changes: 2 additions & 2 deletions Examples/lua/import/base.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Base {
public:
Base() { };
virtual ~Base() { };
Base() { }
virtual ~Base() { }
virtual const char * A() const {
return "Base::A";
}
Expand Down
6 changes: 3 additions & 3 deletions Examples/lua/owner/example.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Shape {
}
virtual ~Shape() {
nshapes--;
};
}
double x, y;
void move(double dx, double dy);
virtual double area(void) = 0;
Expand All @@ -20,7 +20,7 @@ class Circle : public Shape {
private:
double radius;
public:
Circle(double r) : radius(r) { };
Circle(double r) : radius(r) { }
virtual double area(void);
virtual double perimeter(void);
};
Expand All @@ -29,7 +29,7 @@ class Square : public Shape {
private:
double width;
public:
Square(double w) : width(w) { };
Square(double w) : width(w) { }
virtual double area(void);
virtual double perimeter(void);
};
Expand Down
4 changes: 2 additions & 2 deletions Examples/modula3/reference/example.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ struct Vector {
private:
double x,y,z;
public:
Vector() : x(0), y(0), z(0) { };
Vector(double x, double y, double z) : x(x), y(y), z(z) { };
Vector() : x(0), y(0), z(0) { }
Vector(double x, double y, double z) : x(x), y(y), z(z) { }
Vector operator+(const Vector &b) const;
char *print();
};
Expand Down
4 changes: 2 additions & 2 deletions Examples/octave/reference/example.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ class Vector {
private:
double x,y,z;
public:
Vector() : x(0), y(0), z(0) { };
Vector(double x, double y, double z) : x(x), y(y), z(z) { };
Vector() : x(0), y(0), z(0) { }
Vector(double x, double y, double z) : x(x), y(y), z(z) { }
friend Vector operator+(const Vector &a, const Vector &b);
char *print();
};
Expand Down
4 changes: 2 additions & 2 deletions Examples/perl5/import/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

class Base {
public:
Base() { };
virtual ~Base() { };
Base() { }
virtual ~Base() { }
virtual void A() {
printf("I'm Base::A\n");
}
Expand Down
4 changes: 2 additions & 2 deletions Examples/perl5/reference/example.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ class Vector {
private:
double x,y,z;
public:
Vector() : x(0), y(0), z(0) { };
Vector(double x, double y, double z) : x(x), y(y), z(z) { };
Vector() : x(0), y(0), z(0) { }
Vector(double x, double y, double z) : x(x), y(y), z(z) { }
friend Vector operator+(const Vector &a, const Vector &b);
char *print();
};
Expand Down
10 changes: 5 additions & 5 deletions Examples/php/disown/example.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Shape {
}
virtual ~Shape() {
nshapes--;
};
}
double x, y;
void move(double dx, double dy);
virtual double area(void) = 0;
Expand All @@ -22,8 +22,8 @@ class Circle : public Shape {
private:
double radius;
public:
Circle(double r) : radius(r) { };
~Circle() { };
Circle(double r) : radius(r) { }
~Circle() { }
void set_radius( double r );
virtual double area(void);
virtual double perimeter(void);
Expand All @@ -33,7 +33,7 @@ class Square : public Shape {
private:
double width;
public:
Square(double w) : width(w) { };
Square(double w) : width(w) { }
~Square() { }
virtual double area(void);
virtual double perimeter(void);
Expand All @@ -44,7 +44,7 @@ class ShapeContainer {
typedef std::vector<Shape*>::iterator iterator;
std::vector<Shape*> shapes;
public:
ShapeContainer() : shapes() {};
ShapeContainer() : shapes() {}
~ShapeContainer();
void addShape( Shape *s );
};
8 changes: 4 additions & 4 deletions Examples/php/proxy/example.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Shape {
}
virtual ~Shape() {
nshapes--;
};
}
double x, y;
void move(double dx, double dy);
virtual double area(void) = 0;
Expand All @@ -22,8 +22,8 @@ class Circle : public Shape {
private:
double radius;
public:
Circle(double r) : radius(r) { };
~Circle() { };
Circle(double r) : radius(r) { }
~Circle() { }
void set_radius( double r );
virtual double area(void);
virtual double perimeter(void);
Expand All @@ -33,7 +33,7 @@ class Square : public Shape {
private:
double width;
public:
Square(double w) : width(w) { };
Square(double w) : width(w) { }
~Square() { }
virtual double area(void);
virtual double perimeter(void);
Expand Down
4 changes: 2 additions & 2 deletions Examples/php/reference/example.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ class Vector {
private:
double x,y,z;
public:
Vector() : x(0), y(0), z(0) { };
Vector(double x, double y, double z) : x(x), y(y), z(z) { };
Vector() : x(0), y(0), z(0) { }
Vector(double x, double y, double z) : x(x), y(y), z(z) { }
friend Vector operator+(const Vector &a, const Vector &b);
char *as_string();
};
Expand Down
4 changes: 2 additions & 2 deletions Examples/python/import/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

class Base {
public:
Base() { };
virtual ~Base() { };
Base() { }
virtual ~Base() { }
virtual void A() {
printf("I'm Base::A\n");
}
Expand Down
4 changes: 2 additions & 2 deletions Examples/python/import_template/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

template<class T> class Base {
public:
Base() { };
virtual ~Base() { };
Base() { }
virtual ~Base() { }
virtual void A() {
printf("I'm Base::A\n");
}
Expand Down
4 changes: 2 additions & 2 deletions Examples/python/reference/example.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ class Vector {
private:
double x,y,z;
public:
Vector() : x(0), y(0), z(0) { };
Vector(double x, double y, double z) : x(x), y(y), z(z) { };
Vector() : x(0), y(0), z(0) { }
Vector(double x, double y, double z) : x(x), y(y), z(z) { }
friend Vector operator+(const Vector &a, const Vector &b);
char *print();
};
Expand Down
4 changes: 2 additions & 2 deletions Examples/python/smartptr/example.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Shape {
}
virtual ~Shape() {
nshapes--;
};
}
double x, y;
void move(double dx, double dy);
virtual double area() = 0;
Expand All @@ -19,7 +19,7 @@ class Circle : public Shape {
private:
double radius;
public:
Circle(double r) : radius(r) { };
Circle(double r) : radius(r) { }
virtual double area();
virtual double perimeter();
};
Expand Down

0 comments on commit 37cd147

Please sign in to comment.