From 7f9b8b913a56005fe29e6627dfa97d81616ba305 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Wed, 11 Feb 2009 17:11:30 +0000 Subject: [PATCH] added Shape::~Shape() to work around compiler warnings git-svn-id: svn://anubis/fart/trunk@101 7f9b0f55-74a9-4bce-be96-3c2cd072584d --- shapes/Shape.cc | 20 ++++++++++++-------- shapes/Shape.h | 1 + 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/shapes/Shape.cc b/shapes/Shape.cc index d6adadd..ce0a346 100755 --- a/shapes/Shape.cc +++ b/shapes/Shape.cc @@ -1,8 +1,12 @@ - -#include "Shape.h" - -Shape::Shape() -{ - m_transparency = 0.0; - m_material = new Material(Material::white); -} + +#include "Shape.h" + +Shape::Shape() +{ + m_transparency = 0.0; + m_material = new Material(Material::white); +} + +Shape::~Shape() +{ +} diff --git a/shapes/Shape.h b/shapes/Shape.h index d072c03..7d4cf67 100644 --- a/shapes/Shape.h +++ b/shapes/Shape.h @@ -16,6 +16,7 @@ class Shape typedef std::vector IntersectList; Shape(); + virtual ~Shape(); virtual IntersectList intersect(const Ray & ray) = 0; virtual Vector getNormalAt(const Vector & pt) = 0;