Skip to content

Commit

Permalink
Improve code quality
Browse files Browse the repository at this point in the history
  • Loading branch information
mortennobel committed Apr 21, 2018
1 parent 2637393 commit 2d13264
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/14_spinning-primitives-openvr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class SpinningPrimitivesOpenVRExample {
};

int main() {
SpinningPrimitivesOpenVRExample();
SpinningPrimitivesOpenVRExample obj();

return 0;
}
Expand Down
4 changes: 2 additions & 2 deletions examples/15_cloth_simulation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ int CONSTRAINT_ITERATIONS = 7; // how many iterations of constraint satisfaction
vec3 accumulated_normal; // an accumulated normal (i.e. non normalized), used for OpenGL soft shading

public:
Particle(vec3 pos) : pos(pos), old_pos(pos),acceleration(vec3(0,0,0)), mass(1), movable(true), accumulated_normal(vec3(0,0,0)){}
Particle(){}
explicit Particle(vec3 pos) : pos(pos), old_pos(pos),acceleration(vec3(0,0,0)), mass(1), movable(true), accumulated_normal(vec3(0,0,0)){}
Particle() = default;

void addForce(vec3 f)
{
Expand Down
2 changes: 1 addition & 1 deletion test/deallocation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class Deallocation{
};

int main() {
Deallocation();
Deallocation deallocation();
return 0;
}

0 comments on commit 2d13264

Please sign in to comment.