From e371466edf0d8a8675d2a24943d0ec91001dffc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matt=C3=A9o=20Delabre?= Date: Mon, 28 Mar 2016 20:06:49 +0200 Subject: [PATCH] Inutile d'appeler le constructeur parent --- src/block.cpp | 4 +--- src/game.cpp | 1 - src/player.cpp | 4 +--- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/block.cpp b/src/block.cpp index 165e56e..3cd792f 100644 --- a/src/block.cpp +++ b/src/block.cpp @@ -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); diff --git a/src/game.cpp b/src/game.cpp index 5ce979b..05412fa 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -17,7 +17,6 @@ Game::Game() : accumulator(0.f) { } Game::~Game() { - View::~View(); clear(); } diff --git a/src/player.cpp b/src/player.cpp index fb82215..6835d5f 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -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& objects) const { sf::Vector2f forces = Object::getForces(manager, objects);