From c3619e541564d5133a3ccdaeb79588d37d46a3db Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 16 Jul 2009 01:16:23 +0000 Subject: Make copy() a const method. --- libdimensionxx/cameras.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libdimensionxx/cameras.cpp') diff --git a/libdimensionxx/cameras.cpp b/libdimensionxx/cameras.cpp index 5d84c4f..f9f8302 100644 --- a/libdimensionxx/cameras.cpp +++ b/libdimensionxx/cameras.cpp @@ -47,13 +47,13 @@ namespace Dimension // Shallow-copy this camera Camera* - Perspective_Camera::copy() + Perspective_Camera::copy() const { return new Perspective_Camera(*this); } // Private copy-constructor, for copy() implementation - Perspective_Camera::Perspective_Camera(Perspective_Camera& camera) + Perspective_Camera::Perspective_Camera(const Perspective_Camera& camera) : Camera(camera) { } } -- cgit v1.2.3