From a97e7a6d2ea4f4c2a31f8c86e8750165138686ad Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sat, 9 Aug 2014 21:22:12 -0700 Subject: [PATCH] Lights get virtual destructor and correct types --- src/light.cc | 4 ++++ src/light.hh | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/light.cc b/src/light.cc index 5bb694d..847602f 100644 --- a/src/light.cc +++ b/src/light.cc @@ -18,6 +18,10 @@ Light::Light(const Color& color, { } +Light::~Light() +{ } + + Color& Light::GetColor() { diff --git a/src/light.hh b/src/light.hh index 22d0f2f..3175178 100644 --- a/src/light.hh +++ b/src/light.hh @@ -20,9 +20,11 @@ struct Light Light(const basics::Color& color, const Double& intensity = 1.0); + virtual ~Light(); + basics::Color& GetColor(); const basics::Color& GetColor() const; - void SetColor(basics::Color& color); + void SetColor(const basics::Color& color); Double GetIntensity() const; void SetIntensity(const Double& intensity);