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/dimensionxx/cameras.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libdimensionxx/dimensionxx/cameras.hpp') diff --git a/libdimensionxx/dimensionxx/cameras.hpp b/libdimensionxx/dimensionxx/cameras.hpp index 364ea4c..ea08535 100644 --- a/libdimensionxx/dimensionxx/cameras.hpp +++ b/libdimensionxx/dimensionxx/cameras.hpp @@ -37,11 +37,11 @@ namespace Dimension void trans(const Matrix& trans); // Shallow-copy the camera - Camera* copy(); + Camera* copy() const; private: // Copying prohibited, but used internally - Perspective_Camera(Perspective_Camera& camera); + Perspective_Camera(const Perspective_Camera& camera); Perspective_Camera& operator=(const Perspective_Camera&); }; } -- cgit v1.2.3