Inutile d'appeler le constructeur parent

This commit is contained in:
Mattéo Delabre 2016-03-28 20:06:49 +02:00
parent 62013124ab
commit e371466edf
3 changed files with 2 additions and 7 deletions

View File

@ -12,9 +12,7 @@ Block::Block(float x, float y) : Object(x, y) {
sprite.setOrigin(sf::Vector2f(Constants::GRID / 2, Constants::GRID / 2));
}
Block::~Block() {
Object::~Object();
}
Block::~Block() {}
void Block::draw(Manager& manager) {
Object::draw(manager);

View File

@ -17,7 +17,6 @@ Game::Game() : accumulator(0.f) {
}
Game::~Game() {
View::~View();
clear();
}

View File

@ -9,9 +9,7 @@ Player::Player(float x, float y) : Object(x, y) {
sprite.setOrigin(sf::Vector2f(getRadius(), getRadius()));
}
Player::~Player() {
Object::~Object();
}
Player::~Player() {}
sf::Vector2f Player::getForces(const Manager& manager, const std::vector<Object*>& objects) const {
sf::Vector2f forces = Object::getForces(manager, objects);